Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: [stonehenge] deep copy what's the function getpwent()

by hdb (Monsignor)
on Nov 28, 2013 at 21:45 UTC ( [id://1064871]=note: print w/replies, xml ) Need Help??


in reply to [stonehenge] deep copy what's the function getpwent()

Well, if you read the documentation, it says about getpwent:

These routines are the same as their counterparts in the system C library.

If this does not help, google it: getpwent, first find is http://man7.org/linux/man-pages/man3/getpwent.3.html and says:

The first time getpwent() is called, it returns the first entry; thereafter, it returns successive entries.

This little piece of code shows what happens:

while(@x=getpwent()){ print "@x\n"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1064871]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-25 13:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found