in reply to Bash-style Parameter expansion in Perl?
I believe 5.14 will also allowvar="hello world" my $var = "hello world"; var2=${var/world/earth} ( my $var2 = $var ) =~ s/world/earth/; echo $var2 say $var2;
my $var2 = $var =~ s/world/earth/f;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Bash-style Parameter expansion in Perl?
by JavaFan (Canon) on Jul 08, 2010 at 07:21 UTC | |
|
Re^2: Bash-style Parameter expansion in Perl? (or)
by tye (Sage) on Jul 08, 2010 at 08:27 UTC | |
|
Re^2: Bash-style Parameter expansion in Perl?
by bubnoff (Novice) on Jul 08, 2010 at 18:51 UTC |