Help for this page

Select Code to Download


  1. or download this
    # make a global array for storage
    my @array;
    ...
           # or use a concated string
            $storage_string .= $buf;   # concantates $buf onto end of stri
    +ng
        }
    
  2. or download this
    $/ = '';  # change output separator to nothing instead of newline
    print   @array, "\n";
    
  3. or download this
    my @lines=split( /\n/, $storage_string);
    print "@lines\n";
    ...
    # or since $storage_string contains embedded newlines, just printing i
    +t would work
    print "$storage_string\n";