Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Using array refs to interpolate a function itno a string?

by kilinrax (Deacon)
on Dec 13, 2000 at 20:11 UTC ( #46433=note: print w/replies, xml ) Need Help??


in reply to Using array refs to interpolate a function itno a string?

Try wrapping the function in '@{[ ... ]}':
perl -e 'print qq(time: @{[scalar localtime]});'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2022-05-28 19:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (101 votes). Check out past polls.

    Notices?