Help for this page

Select Code to Download


  1. or download this
    open(IN,$log) || die $!, "\n";
    
  2. or download this
    if ( $_ !~ m/$i/ ) {
        print;
    }
    
  3. or download this
    open FH, "filename" or die $!;
    #will read as its meant to: open(FH,"filename") or die $!;
    ...
    #will read as: open FH,("filename" || die $!); which is not good since
    + the only time 
    #this expression will be treated as false is in cases where filename i
    +s an undefined expression(0,"",or undefined scalar)
    #but unrecognized file names will not be evaluated as false so the die
    + will serve no purpose and the the script will continue to run