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

Re^2: check bind_columns for undefined values

by Anonymous Monk
on Feb 12, 2013 at 00:35 UTC ( #1018268=note: print w/ replies, xml ) Need Help??


in reply to Re: check bind_columns for undefined values
in thread check bind_columns for undefined values

Hi, Thanks for the Map idea, I'm new to perl (but not other similar languages).
Can someone explain why the example:

map { $$_ = "null" if (!defined $$_); } @list_of_refs_to_vars_to_bind;

...uses $$_ when I would expect it to use $_ - i've googled round and round but haven't found an explanation yet.

many thanks
jonathan


Comment on Re^2: check bind_columns for undefined values
Re^3: check bind_columns for undefined values
by ww (Bishop) on Feb 12, 2013 at 02:51 UTC
    A decent tut on reference/dereference -- such as those found in Tutorials right here in the Monastery -- should make the answer clear.

    If you didn't program your executable by toggling in binary, it wasn't really programming!

Log In?
Username:
Password:

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

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

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





    Results (112 votes), past polls