Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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.

Replies are listed 'Best First'.
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 scrutinizing the Monastery: (9)
As of 2016-07-26 09:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (234 votes). Check out past polls.