Help for this page

Select Code to Download


  1. or download this
        my @ARRAY = split(/[\r\n]+/, $ENTIRE_FILE_CONTENT);
    
  2. or download this
    use Tie::File;
    
    tie my @array, 'Tie::File', filename or die "Cannot open 'filename' be
    +cause: $!";
    
  3. or download this
    
        for (my $i = 0; $i < @ARRAY; $i++)
    ...
          print "\n$ARRAY[$i]";
        }
    
  4. or download this
    
        for my $i ( 0 .. $#ARRAY )
    ...
          print "$ARRAY[$i]\n";
        }