Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 perusing the Monastery: (7)
As of 2015-07-03 08:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (49 votes), past polls