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/
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
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: $!
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