Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How can one re-parse(?) a string to fill in variables

by brcjacks (Initiate)
on Oct 31, 2013 at 13:58 UTC ( [id://1060576]=note: print w/replies, xml ) Need Help??


in reply to How can one re-parse(?) a string to fill in variables

These days, why not just use double-quotes to interpolate the string. #!/usr/bin/perl -w use strict; my $name = 'Alex'; my $greeting = "Hello $name"; print $greeting

Replies are listed 'Best First'.
Re: Answer: How can one re-parse(?) a string to fill in variables
by Corion (Patriarch) on Oct 31, 2013 at 14:07 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-03-19 03:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found