Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Dereference Empty(!) Array

by tangent (Priest)
on Feb 20, 2012 at 19:09 UTC ( #955130=note: print w/replies, xml ) Need Help??

in reply to Dereference Empty(!) Array

This is my attempt at decoding what's going on:
1) @foo = the result of dereferencing $_[0] 2) @bar = the result of dereferencing $_[0] if $_[0] is true otherwise the result of dereferencing the empty array "()" 3) @jazz = the number of elements of the result of dereferencing $_[0] if that number is true (greater than 0) otherwise the empty array "()"
So, depending on your arguments, both 2 and 3 may give unexpected results, and all three may cause problems if $_[0] is not an array reference

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://955130]
[talexb]: Good morning. Or, good localtime.
[trahulprajapati]: I'm faicing a problem while navigating from one page to another. here is the discription- 1)I want to login webpage 2) on next page click okay 3)then next page fill some text in textbox 4) submitt. I have tried it by WWW::Scripter:: Javascript as page

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2017-06-26 15:10 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (583 votes). Check out past polls.