Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: How do I pick a random line from a file?

by Crulx (Monk)
on Jan 21, 2000 at 05:06 UTC ( [id://2292]=note: print w/replies, xml ) Need Help??


in reply to How do I pick a random line from a file?

More cryptically
srand; rand($.) < 1 && ($it = $_) while <>;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-25 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found