in reply to Bareword warning question

I get this warning in version 5.6.1. Hey, it's a bug. Oh, well. It's hard to parse perl. Upgrade or deal with it. That's the way it goes sometimes :-)
use strict; use warnings; my $fh = \*STDOUT; print $fh foo(1), "\n"; sub foo { shift; }

Replies are listed 'Best First'.
Re^2: Bareword warning question
by Akoya (Scribe) on Jul 12, 2007 at 22:59 UTC
    Thanks for the quick reply. I guess I'll just have to deal with it. As I mentioned, the workaround of putting anything before the function call works fine. Unfortunately, upgrading is not an easy path on a production server. Akoya