Help for this page

Select Code to Download


  1. or download this
    while (<>) {
       do_stuff_to $_;
    }
    ...
    for (@ARGV) {
       do_stuff_to $_;
    }
    
  2. or download this
    while (<*>) {
       do_stuff_to $_;
    ...
    foreach (@dir) {
       Do_your_thing $_;
    }
    
  3. or download this
    open (FH, ">/temp/tempfile");
    print FH $temporary_data;
    
  4. or download this
    my $tempdir = "/temp/";
    my $tempfile = "tempfile";
    
    and then 
    
    open FH "$tempdir$tempfile";