Re: slurp error

2018-08-06 Thread Shlomi Fish
Hi all! On Fri, 27 Jul 2018 14:42:35 -0400 Uri Guttman wrote: > On 07/27/2018 02:37 PM, Rick T wrote: > > I tried to implement some advice about slurping that I read on this > > mailing list (using local) but cannot get it to work. I get the > > message “Value of construct can be "0"; test wi

Re: slurp error

2018-07-29 Thread perl
Many thanks to Andy and Uri for their helpful comments. My problem is solved, plus I learned a lot in the process! — Rick > On Jul 27, 2018, at 1:56 PM, Andy Bach wrote: > > open my $fh1, '<', $file_to_convert > or die "Can't open $file_to_convert: $!\n"; > $slurp = <$fh1> >

Re: slurp error

2018-07-27 Thread Andy Bach
open my $fh1, '<', $file_to_convert or die "Can't open $file_to_convert: $!\n"; $slurp = <$fh1> or die "Could not slurp $file_to_convert: $!"; It's just a warning (the code works) that you're using $fh1 untested. This doesn't complain if ( open my $fh1, '<', $file_to_conver

Re: slurp error

2018-07-27 Thread Uri Guttman
On 07/27/2018 02:37 PM, Rick T wrote: I tried to implement some advice about slurping that I read on this mailing list (using local) but cannot get it to work. I get the message “Value of construct can be "0"; test with defined() at line 23” (the $slurp = <$fh1> line). I’m using perl version 5