Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Mysterious append failure.

by Jasper (Chaplain)
on Dec 09, 2004 at 14:02 UTC ( #413542=note: print w/replies, xml ) Need Help??


in reply to Mysterious append failure.

I was going to say that  use strict would have shown up your problem, but you're using $a and $b, so it probably wouldn't have been much use, after all. Bad $a. Bad $b.

edit:
[jasper@carabosse spamjab]$ perl -le 'use strict; my$x=99; my $x = $_ +for 1..3; print $x' [jasper@carabosse spamjab]$ perl -le 'use strict; my$x=99; for (1..3){ +my $x=$_}; print $x' 99 [jasper@carabosse spamjab]$
curious? Is it?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://413542]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2022-05-16 18:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (63 votes). Check out past polls.

    Notices?