Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^5: Creating 'new' subroutine.

by Anonymous Monk
on Oct 11, 2013 at 11:17 UTC ( #1057866=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Creating 'new' subroutine.
in thread Creating 'new' subroutine.

yes but

and this is relevant to the logic error in Re^2: Creating 'new' subroutine. how?


Comment on Re^5: Creating 'new' subroutine.
Re^6: Creating 'new' subroutine.
by Lennotoecom (Pilgrim) on Oct 11, 2013 at 11:20 UTC
    "@_ is an array, an array in scalar context returns the number of elements (a number), and anumber is never a reference"
    that was an answer for that comment, I didnt imply creating a
    reference out of a number.
    so, I don't understand what is your point.

      You posted code where you test an array with ref, it doesn't do what you think it does (it does nothing)

      its the equivalent of  if( not ref "shamalama" eq "dingdong" ){ ... }

      its equivalent to  if(1){ ... }

      clear now?

        thank you, got carried away a bit)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2014-12-22 04:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls