Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

RE: RE: package namespace manipulation

by knight (Friar)
on Nov 15, 2000 at 00:32 UTC ( [id://41639]=note: print w/replies, xml ) Need Help??


in reply to RE: package namespace manipulation
in thread package namespace manipulation

You're right, but that's why I'm dereferencing it to find out if there's a live SCALAR at the end. Your example doesn't actually match what's coded; try:
perl -wle 'print "Yep" if defined ${*{"NOSUCH"}{SCALAR}}'

Replies are listed 'Best First'.
RE: package namespace manipulation
by Dominus (Parson) on Nov 15, 2000 at 00:34 UTC
    Oh, my mistake; thanks for the correction.

    It still seems to me that it would be simpler to write defined ${$fqvar} instead of defined ${*{$fqvar}{SCALAR}} however.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2024-04-16 08:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found