Re: read from command line

2012-03-03 Thread lina
Thanks for both of you. Your guys are great. Best regards, -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: read from command line

2012-03-03 Thread Ken Slater
On Sat, Mar 3, 2012 at 9:08 AM, lina wrote: > $ perl extract.pl try.tex > Bareword "filename" not allowed while "strict subs" in use at extract.pl line > 8. > Execution of extract.pl aborted due to compilation errors. > > > #!/usr/bin/env perl > > use strict; > use warnings; > > my $filename = $A

Re: read from command line

2012-03-03 Thread Steve Bertrand
On 2012-03-03 09:08, lina wrote: $ perl extract.pl try.tex Bareword "filename" not allowed while "strict subs" in use at extract.pl line 8. Execution of extract.pl aborted due to compilation errors. #!/usr/bin/env perl use strict; use warnings; Good. my $filename = $ARGV[0] ; open FILE, "