Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: De referencing

by davido (Archbishop)
on Jun 22, 2013 at 06:00 UTC ( #1040248=note: print w/ replies, xml ) Need Help??


in reply to De referencing

Assuming the scalar ref held in $align is simple, and not just the head of some more complex structure (or object)...

print OUTPUT1 "$$align\n";

If it's the head of something more complex, use Data::Dumper to get a look at the structure, or read the module POD so you can plan how to dereference it effectively.

A nice introduction to references is found in perlreftut.


Dave


Comment on Re: De referencing
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-10-02 02:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (45 votes), past polls