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

Re^4: reparse tree in textfile

by ikegami (Patriarch)
on Feb 20, 2010 at 07:12 UTC ( #824326=note: print w/replies, xml ) Need Help??


in reply to Re^3: reparse tree in textfile
in thread reparse tree in textfile

It was one way to do it. The goal was to keep @path with only "pure" node information

That's unrelated. I was referring to $#a=...; push @a,...;. The first statement sets the size of the array. Then next changes it. Why not just set it to the right size right from the start.

Me too. But a data structure outside the loop was needed to oversee things.

eh? What global data structure? I was referring $1 and $2. The only other global is DATA.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2023-09-21 21:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?