Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 about the Monastery: (7)
As of 2014-10-22 10:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (115 votes), past polls