Are you sure you are calling the sub that you think you are calling?
Update: Now I actually tested the code (and not just looked at it), and all I get is this message (with perl 5.8.8):
Can't use string ("") as a subroutine ref while "strict refs" in use at driver.pl line 4, <DATA> line 1.</c>
Are you sure that you get a newline as output if you run exactly that script?
In reply to Re: File-scoped lexicals and eval scope?
by moritz
in thread File-scoped lexicals and eval scope?
by Cambo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |