Thai Heng has asked for the wisdom of the Perl Monks concerning the following question:
I can't understand the function getpWent(). This function can be called many times and how to transfer input argument to it, then get different output argumeng or return array? Who can give a simple example for this function or this question?while (@x = getpwent()) { $info{$x[0]} = \@x; print "$info{$x[0]}\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: [stonehenge] deep copy what's the function getpwent()
by GrandFather (Saint) on Nov 28, 2013 at 21:37 UTC | |
|
Re: [stonehenge] deep copy what's the function getpwent()
by hdb (Monsignor) on Nov 28, 2013 at 21:45 UTC | |
|
Re: [stonehenge] deep copy what's the function getpwent()
by Anonymous Monk on Nov 29, 2013 at 07:50 UTC | |
by Anonymous Monk on Nov 29, 2013 at 07:53 UTC |