/usr/share/perl5/auto/Env/PS1/P_a.al is in libenv-ps1-perl 0.06-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # NOTE: Derived from lib/Env/PS1.pm.
# Changes made here will be lost when autosplit is run again.
# See AutoSplit.pm.
package Env::PS1;
#line 471 "lib/Env/PS1.pm (autosplit into blib/lib/auto/Env/PS1/P_a.al)"
sub P_a {
open(AC,'/proc/acpi/ac_adapter/AC/state') or return '?';
my $a = <AC>;
close AC;
return ( ($a =~ /on/) ? '+' : '-' );
}
# end of Env::PS1::P_a
1;
|