Help for this page

Select Code to Download


  1. or download this
    system_prompt>my_script.pl $file1
    system_prompt>my_script.pl $file2
    
  2. or download this
    system_prompt>my_script.pl $file1 $file2
    
  3. or download this
    die "Usage: $0 file1 file2" unless @ARGV == 2;
    ...
    ...
        open my $input_fh, '<', $filename or die "Can't open '$filename': 
    +$!";
        ...
    }
    
  4. or download this
    my $exit = '';
    until ($exit) {
        ... code where $exit never becomes TRUE ...
    }
    
  5. or download this
    sub infile($file1); #will this be passed to ARGV[0]?
    ...
    sub infile(file2);  #will this be sent to ARGV[0] as well after the fi
    +rst file?