On Thu, Dec 23, 2010 at 10:55 PM, Chris Stinemetz
<cstinem...@cricketcommunications.com> 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 <bamcc...@gmail.com>
V zrna gur orfg jvgu jung V fnl. Vg qbrfa'g nyjnlf fbhaq gung jnl.
Castopulence Software <http://www.castopulence.org/> <bamcc...@castopulence.org>

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to