Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^5: Writing an array inside an array

by raybies (Chaplain)
on Nov 18, 2010 at 13:50 UTC ( [id://872247]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Writing an array inside an array
in thread Writing an array inside an array

it's a minor nitpick, but why use a variable named sub in perl, knowing it's a keyword? if you forget a single sigil you could easily end up with code that runs but does something very unexpected. Also you continue to put "my" in front of graph in two places. In your first for loop, you probably wanted to just put $#graph and leave the second my off. Though because you just initialized your array, you're not going to ever enter that loop until you put something in the @graph array.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-20 03:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found