Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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
Replies are listed 'Best First'.
Re^2: return $paths only if ...
by chromatic (Archbishop) on Aug 20, 2012 at 16:33 UTC

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2015-11-29 23:29 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (754 votes), past polls