in reply to Re^2: surprised to find cannot assign s/../../ to a variable
in thread surprised to find cannot assign s/../../ to a variable
my $pattern = defined $options{pattern} ? qr{$options{pattern}} : $def +ault_pattern; my $replacement = defined $options{replacement} ? $options{replacement +} : $default_replacement; $text =~ s/$pattern/$replacement/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: surprised to find cannot assign s/../../ to a variable
by hippo (Archbishop) on Jul 05, 2024 at 13:40 UTC | |
by vincentaxhe (Scribe) on Jul 05, 2024 at 15:27 UTC | |
by hippo (Archbishop) on Jul 05, 2024 at 15:45 UTC |