Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Image path is going wrong

by InfiniteSilence (Curate)
on Apr 24, 2014 at 15:36 UTC ( [id://1083632]=note: print w/replies, xml ) Need Help??


in reply to Image path is going wrong

If you want to call a function inside of a string you need to either use a weird syntax or break up the string and concatenate,

perl -e 'sub foo{return qq|xoxoxox|}; print qq|happy @{[&foo]} !|;' happy xoxoxox ! # or perl -e 'sub foo{return qq|xoxoxox|}; print qq|happy |. &foo . q~!~;'

Celebrate Intellectual Diversity

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-18 06:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found