On Thu, Dec 23, 2010 at 10:55 PM, Chris Stinemetz <[email protected]> wrote: > 1 #!/usr/bin/perl > 2 > 3 use warnings; > 4 use strict; > 5 > 6 #Get data from EVDOPCMD.txt file and output to processed.txt file. > 7 > 8 print "What file do you want to parse?"; > 9 $filename = <STDIN>; > 10 > 11 open( my $in, '<', $filename) or die("Can't open $filename for reading: > $!"); > 12 open( my $out, '>', $outputfile) or die("Can't create file $outputfile: > $!);
$outputfile isn't declared/defined yet. Also, the string passed to die isn't terminated by a double-quote, which is the ultimate cause of the obscure errors that you're getting. -- Brandon McCaig <[email protected]> V zrna gur orfg jvgu jung V fnl. Vg qbrfa'g nyjnlf fbhaq gung jnl. Castopulence Software <http://www.castopulence.org/> <[email protected]> -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
