Do you know where your variables are? | |
PerlMonks |
Re: Count the number of return values from a subroutineby ariels (Curate) |
on Jul 09, 2001 at 16:07 UTC ( [id://94948]=note: print w/replies, xml ) | Need Help?? |
So do I, but $n = scalar foo does something completely different from $n = () = foo.
Observe, I have nothing up my sleeve!
You forgot the general rule about converting a list to a scalar: "there is no general rule for converting a list to a scalar"!
In Section
Cool Uses for Perl
|
|