Help for this page

Select Code to Download


  1. or download this
    open FILE, $filename || die $!;
    
  2. or download this
    open FILE, $filename or die $!;
    
  3. or download this
    open(FILE,$filename) || die $!;
    
  4. or download this
    die "Could not open $filename: $!\n";
    
  5. or download this
    $str ='abcd';
    $str =~s/a//g; # \g unnecessary
    ##
    $str = 'abacad';
    $str =~s/a//g; # more appropriate