Re: Problems with perl script on 6.1/5.8.8

2007-02-07 Thread Jonathan McKeown
On Tuesday 06 February 2007 22:24, Don O'Neil wrote: > I've got a perl script that just refuses to run on my new 6.1 box with Perl > 5.8.8... Whenever I run it from the command line I get this: > > Can't modify single ref constructor in lock at ./caldisp.pl line 84, near > "*LOCKF)" > Execution of

Re: Problems with perl script on 6.1/5.8.8

2007-02-06 Thread Josh Carroll
Can't modify single ref constructor in lock at ./caldisp.pl line 84, near "*LOCKF)" Execution of ./caldisp.pl aborted due to compilation errors. I'm not sure what has changed in Perl 5.8, but this should work instead: if(open my $fh, "> $LOCKF") { lock($fh); } Josh __

Problems with perl script on 6.1/5.8.8

2007-02-06 Thread Don O'Neil
I've got a perl script that just refuses to run on my new 6.1 box with Perl 5.8.8... Whenever I run it from the command line I get this: Can't modify single ref constructor in lock at ./caldisp.pl line 84, near "*LOCKF)" Execution of ./caldisp.pl aborted due to compilation errors. The lines in qu