Don't ask to ask, just ask | |
PerlMonks |
Re: Re: Can you guess the result? Is it a bug?by The Mad Hatter (Priest) |
on Jul 31, 2003 at 03:47 UTC ( [id://279472]=note: print w/replies, xml ) | Need Help?? |
Because $test is in double-quotes, your shell is trying to interpolate it. Since it isn't set though (and there aren't such things as warnings and strict for the shell ; ), it is replaced with nothing and becomes:
If you escape the $ you'll be fine.
In Section
Seekers of Perl Wisdom
|
|