Help for this page

Select Code to Download


  1. or download this
       while (<PATTERN>){
            # do stuff here
       }
    
  2. or download this
    open (PATTERN, "<", "$html_dir/$FigFile/$DirFile") or die "Unable to 
    +open pattern file: $1";
    
  3. or download this
    open my $PATTERN, "<", "$html_dir/$FigFile/$DirFile"
       or die "Unable to open pattern file: $!";
    
  4. or download this
    DoSomethingWithFile($PATTERN);
    
  5. or download this
    sub DoSomethingWithFile {
       my $FH = shift @_;
    ...
            # do stuff here
       }
    }