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
In reply to Re: Image path is going wrong
by InfiniteSilence
in thread Image path is going wrong
by usmrguru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |