Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: foreach not doing what I expect it to be doing

by Articuno (Beadle)
on Feb 08, 2006 at 21:31 UTC ( #528941=note: print w/replies, xml ) Need Help??


in reply to Re: foreach not doing what I expect it to be doing
in thread foreach not doing what I expect it to be doing

Also, but not related to your problem, you should open your bucket.txt only once, otherwise it'll be overwritten on each iteration.
open(DEBUG, ">bucket.txt"); foreach my $bucket ( @bucketList ) { print DEBUG Dumper($bucket); } close(DEBUG);
-- 6x9=42

Replies are listed 'Best First'.
Re^3: foreach not doing what I expect it to be doing
by kwaping (Priest) on Feb 08, 2006 at 23:54 UTC
    That, or open it with >> instead of >. But your solution is better overall, I am just stating a TIMTOWTDI.

    Update: Mental note, read all replies before responding!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://528941]
help
Chatterbox?
[karlgoethebier]: Lanx: <a name="env">$ENV{ KARL}</a> and [href://?node_id= 1001958#env|See] ;-)
[Discipulus]: dabella12 if you dont use <c> code tags</c> no one will ever look at your problem

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2017-06-24 14:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (558 votes). Check out past polls.