Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Random entry from combined data set

by damian1301 (Curate)
on Jul 04, 2001 at 07:10 UTC ( [id://93759]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open(FH,"$file1") or die " Could not open $file1!!! Here's why: $!";
    push @array, <FH>;
    close FH or die "Could not close $file1. Here's why: $!";
    
  2. or download this
    print $array[rand(@array)]; # just for you, meowchow :)
    
  3. or download this
    sub openf{
        my $file = shift;
    ...
    
    push @array,openf("test2.txt"),openf("test.txt");
    print $array[4];
    
  4. or download this
    $_.=($=+(6<<1));print(chr(my$a=$_));$^H=$_+$_;$_=$^H;
    print chr($_-39); # Easy but its ok.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-24 04:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found