in reply to surprised to find cannot assign s/../../ to a variable
$a='aa'; $b='s/a/b/'; eval '$a =~ '.$b;
my $namematch = $options{r} // 's/\.[^.]+$/+/r'; my @name; eval '@name = $file =~ '.$namematch;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: surprised to find cannot assign s/../../ to a variable
by LanX (Saint) on Jul 09, 2024 at 14:43 UTC | |
|
Re^2: surprised to find cannot assign s/../../ to a variable
by vincentaxhe (Scribe) on Jul 09, 2024 at 04:05 UTC |