On Sun, Nov 30, 2003 a.d., Tels wrote: > Why is CLONE special, but FOO not? That doesn't follow from Liz' example: > > te@null:~/perl/math/Math-BigInt-1.67> perl -MO=Deparse -e 'FOO { foo => > "bar" }' > do { > 'foo', 'bar' > }->FOO; > - -e syntax OK Deparse is wrong :-) $ perl -e 'foo { bar => "baz" }' Can't locate object method "foo" via package "bar" (perhaps you forgot to load "bar"?) at -e line 1. $ perl -MO=Deparse -e 'foo { bar => "baz" }' | perl -e syntax OK Can't locate object method "foo" via package "baz" (perhaps you forgot to load "baz"?) at - line 1. Or maybe Perl itself is wrong ? Regards, AdiThread Previous | Thread Next