in reply to using 'my'

Can you spot the error?
$illusion = ''; print "$i11usion\n";
If you run this, you get: a new line.

However, if you use strict (and -w) you would know exactly what the problem is. Whether a program is 2 pages or 200 pages long, I'd rather not pull my hair out over such a trivial typo. But, there is always more than one way to do it - caveat programre!



Replies are listed 'Best First'.
Re: (jeffa) Re: using
by ellem (Hermit) on Jun 21, 2001 at 22:54 UTC
    I could once I got the text into a text editor. I'd have gone for a mispelling by yours is pretty much the best case for use strict; I've seen in a while.


    <CODE> $pword = "password" ;
    print $pwords\n" ;
    print "\x{263a}"