Perl

From SkyWiki

Revision as of 11:15, 15 September 2008 by Martin (Talk | contribs)
Jump to: navigation, search

PERL syntax

read a file line by line

  open(IN, '<'.$ARGV[0]);
  foreach(<IN>) {
    chomp;
    print $_, "\n";
  }
  close(IN);
Personal tools