Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: A series of random number and others

by GrandFather (Saint)
on Oct 09, 2008 at 01:25 UTC ( [id://716113]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    rand () < 0.5 and print while <>;
    
  2. or download this
    open my $rndLines, '<', "rand_sorted.txt" or die "Can't open rand_sort
    +ed.txt: $!";
    my %lines = map {$_ => undef} grep {chomp; length} <$rndLines>;
    close $rndLines;
    
    exists $lines{$.} and print while <>;
    

Log In?
Username:
Password:

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

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

    No recent polls found