Devel-PatchPerl-Plugin-Darwin
view release on metacpan or search on metacpan
lib/Devel/PatchPerl/Plugin/Darwin.pm view on Meta::CPAN
- next;
- }
- if ($n == $max) {
- local $/;
- my $junk = <PW>;
- last;
- }
- # In principle we could whine if @s != 7 but do we know enough
- # of passwd file formats everywhere?
- if (@s == 7 || ($^O eq 'darwin' && @s == 10)) {
- @n = getpwuid($uid_s);
- # 'nobody' et al.
- next unless @n;
- my ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$home,$shell) = @n;
- # Protect against one-to-many and many-to-one mappings.
- if ($name_s ne $name) {
- @n = getpwnam($name_s);
- ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$home,$shell) = @n;
- next if $name_s ne $name;
- }
- $perfect{$name_s}++
lib/Devel/PatchPerl/Plugin/Darwin.pm view on Meta::CPAN
+ } else {
+ warn "# Your $where line $. is empty.\n";
+ next;
+ }
+ if ($n == $max) {
+ local $/;
+ my $junk = <PW>;
+ last;
+ }
+ if (@s == 7 || ($^O eq 'darwin' && @s == 10)) {
+ @n = getpwuid($uid_s);
+ next unless @n;
+ my ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$home,$shell) = @n;
+ if ($name_s ne $name) {
+ @n = getpwnam($name_s);
+ ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$home,$shell) = @n;
+ next if $name_s ne $name;
+ }
+ $perfect{$name_s}++
+ if $name eq $name_s and
+ $uid eq $uid_s and
lib/Devel/PatchPerl/Plugin/Darwin.pm view on Meta::CPAN
+ next;
+ }
+ if ($n == $max) {
+ local $/;
+ my $junk = <PW>;
+ last;
+ }
+ # In principle we could whine if @s != 7 but do we know enough
+ # of passwd file formats everywhere?
+ if (@s == 7 || ($^O eq 'darwin' && @s == 10)) {
+ @n = getpwuid($uid_s);
+ # 'nobody' et al.
+ next unless @n;
+ my ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$home,$shell) = @n;
+ # Protect against one-to-many and many-to-one mappings.
+ if ($name_s ne $name) {
+ @n = getpwnam($name_s);
+ ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$home,$shell) = @n;
+ next if $name_s ne $name;
+ }
+ $perfect{$name_s}++
( run in 0.259 second using v1.01-cache-2.11-cpan-8d75d55dd25 )