bubnoff has asked for the wisdom of the Perl Monks concerning the following question:
Which produces:var="hello world" var2=${var/world/earth} echo $var2
Thanks for reading ~ Bubnoffmy $sentence = qq(Hello World); my $sub2 = $sentence; $sub2 =~ s/World/Earth/; print "$sub2";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Bash-style Parameter expansion in Perl?
by ikegami (Patriarch) on Jul 08, 2010 at 01:19 UTC | |
by JavaFan (Canon) on Jul 08, 2010 at 07:21 UTC | |
by tye (Sage) on Jul 08, 2010 at 08:27 UTC | |
by bubnoff (Novice) on Jul 08, 2010 at 18:51 UTC |