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.