Re: printing lines from a file

2005-02-26 Thread John W. Krahn
Christopher Spears wrote: Here is some code I am working on: #!/bin/perl -w use strict; my $number_of_args = @ARGV; open STDERR, ">./caught_errors" or die "Can't create caught_errors: $!"; if ($number_of_args == 0) { print "Not enough arguments!\n"; print "Usage: ./cedit somefile.C++\n";

printing lines from a file

2005-02-26 Thread Christopher Spears
Here is some code I am working on: #!/bin/perl -w use strict; my $number_of_args = @ARGV; open STDERR, ">./caught_errors" or die "Can't create caught_errors: $!"; if ($number_of_args == 0) { print "Not enough arguments!\n"; print "Usage: ./cedit somefile.C++\n"; print "Usage (optio