Help for this page

Select Code to Download


  1. or download this
    $status =~ s/(\W+)/ /gs; #Eliminate all non-word characters followed b
    +y space.
    
  2. or download this
    $soc =~ s/(\W+)/ /; #Eliminate all non-word characters followed by spa
    +ce.
    
  3. or download this
    $subscriber =~ s/(\D+)/ /; #Eliminate all non-digits followed by space
    +.
    
  4. or download this
    foreach (@file_row) {
        while ( $line < $#file_row + 1 ) {
    ...
            $line++;
        }    #while
    }    #foreach
    
  5. or download this
    foreach $row_data ( @file_row ) {
        # Processing goes here.
    }
    
  6. or download this
    while ( $row_data = <IN_FL> ) {
        # Processing here
    }
    
  7. or download this
    open(IN_FL, $input_FL) || die ("unable to open directory");
    
  8. or download this
    open IN_FL, $input_FL or die "unable to open $input_FL:$!";