Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: return $paths only if ...

by aitap (Deacon)
on Aug 20, 2012 at 15:18 UTC ( #988464=note: print w/ replies, xml ) Need Help??


in reply to return $paths only if ...

Try checking for elements inside the array, not for definedness. For example, if ($#{$paths} > -1) { ... }.

Sorry if my advice was wrong.


Comment on Re: return $paths only if ...
Download Code
Re^2: return $paths only if ...
by chromatic (Archbishop) on Aug 20, 2012 at 16:33 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (13)
As of 2015-07-01 19:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (17 votes), past polls