Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#ffcccc
langperl
my $filename = # initialize
open( FILE, $filename) or carpcroak("file not found");
while (<FILE>) {
  print "$file: $_";
};

...

Code Block
bgColor#ffcccc
langperl
my $filename = # initialize
open( FILE, "<$filename") or carpcroak("file not found");
while (<FILE>) {
  print "$file: $_";
};

...

Code Block
bgColor#ffcccc
langperl

my $filename = # initialize
open( FILE, $filename) or carpcroak("file not found");
while (<>) {
  print ":: $_";
};

...

Code Block
bgColor#ccccff
langperl
my $filename = # initialize
open( FILE, "<", $filename) or carpcroak("file not found");
while (<FILE>) {
  print "$file: $_";
};

...