bart has asked for the wisdom of the Perl Monks concerning the following question:
#! perl -wl use strict; for my $i (1 .. 10) { print $i; } cxontinue { print "#"; print "-"; }
Can't call method "cxontinue" without a package or object reference at + test.pl line 5. 1 2 3 4 5 6 7 8 9 10 # -
This is what B::Deparse makes of it, equally strange:
foreach my $i (1 .. 10) { print $i; } do { print '#'; print '-' }->cxontinue; test.pl syntax OK
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why does this even compile?
by liz (Monsignor) on Sep 20, 2003 at 08:32 UTC | |
|
Re: Why does this even compile?
by PodMaster (Abbot) on Sep 20, 2003 at 08:21 UTC | |
by bart (Canon) on Sep 20, 2003 at 09:45 UTC | |
by bart (Canon) on Sep 20, 2003 at 08:26 UTC | |
by chromatic (Archbishop) on Sep 20, 2003 at 17:04 UTC |