in reply to Not understanding 2 sentences in perldoc
It means this
can be written asmy $x = f(); my $y = $x;
andmy $y = my $x = f();
can be written asmy $copy = $str; $copy =~ s/\\/\\\\/g;
( my $copy = $str ) =~ s/\\/\\\\/g;
Update: Added second example.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Not understanding 2 sentences in perldoc
by LanX (Saint) on Jul 30, 2020 at 22:30 UTC | |
by ikegami (Patriarch) on Jul 30, 2020 at 22:46 UTC |