Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Can you use string as a HASH ref while "strict refs" in use?

by Anonymous Monk
on Dec 06, 2013 at 03:26 UTC ( [id://1065886]=note: print w/replies, xml ) Need Help??


in reply to Can you use string as a HASH ref while "strict refs" in use?

Can you use string as a HASH ref while "strict refs" in use?

Of course you can , just use it as a key of a hash whose value is a hashref, naturally:D

my %pad; $pad{$string} ||= {}; $pad{$string}{hashref}=12; my $global = \%global::; $global->{$string}{hashref}=12;

I tried to explain to the coworkers what the problem was, but those not familiar with Perl were not able to understand.

Did you compare a "symbolic reference" to a "symbolic link"?

Yes, its hard to understand one part of a machine without understanding how all the parts work

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-25 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found