Re: Problem reading files

2010-10-17 Thread Kryten
I got to the bottom of this now. The file had previously been encrypted. Doh! Thanks, Stuart -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Problem reading files

2010-10-16 Thread Parag Kalra
Hi Kryten, Could you please post a sample content of the file and the actual content that is being displayed by the script on your editor. Also kind send the output of following script and check if its same as your previous output. #!/usr/bin/perl use strict; use warnings; use diagnostics; #ope

Re: Problem reading files

2010-10-16 Thread Shlomi Fish
Hi Kryten, On Friday 15 October 2010 08:42:07 Kryten wrote: > Hi, > I'm hitting a strange problem running simple perlscript on my new > laptop. > > To illustrate:- > > #!/usr/bin/perl > use strict; > use warnings; > use diagnostics; > > open my $configuration, 'H:\temp.txt' or die "my error: $!

Problem reading files

2010-10-16 Thread Kryten
Hi, I'm hitting a strange problem running simple perlscript on my new laptop. To illustrate:- #!/usr/bin/perl use strict; use warnings; use diagnostics; open my $configuration, 'H:\temp.txt' or die "my error: $!" ; my @info = <$configuration> ; chomp (@info); foreach my $i (@info) { print "$i\n