in reply to Re^5: Tiny Perl puzzle
in thread Tiny Perl puzzle

> Sure it does, it matters how Deparse places the space, because it matters to perl

it depends! ;-)

> > most likely it depends if a function is known at compile time

> perl open ONE, ">", "/tmp/tst"; sub ONE { "@_ \n Space doesn't matter! \n" } print ONE ( TWO ); # sub-call __END__ TWO Space doesn't matter!

update

ALSO:

> perl open ONE, ">", "/tmp/tst"; print (ONE (TWO)); # filehandle __END__ > cat /tmp/tst TWO >

BUT:

> perl open ONE, ">", "/tmp/tst"; print ONE(TWO); # sub-call __END__ Undefined subroutine &main::ONE called at - line 3.

Cheers Rolf

(addicted to the Perl Programming Language)