On 09/17/2014 12:46 PM, SSC_perl wrote: > On Sep 16, 2014, at 6:58 PM, <sisyph...@optusnet.com.au> > <sisyph...@optusnet.com.au> wrote: >> Are you sure you've quoted the code (that's producing the warning) correctly? > > Yes, I did. I double-checked it just to be certain. However, I ran > the code by itself and it doesn't produce that warning, so it must be > something upstream that's causing it. > > Thanks, > Frank
The code if (' ') { ... } will execute the block. The code if ('') { ...} will not Neither ' ' nor '' are numeric, so using them in an arithmetic expression will generate a warning. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/