laziness, impatience, and hubris | |
PerlMonks |
Re: How can one re-parse(?) a string to fill in variablesby brcjacks (Initiate) |
on Oct 31, 2013 at 13:58 UTC ( [id://1060576]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|