in reply to Re^4: regex syntax and idomatic Perl
in thread regex syntax and idomatic Perl
For the record, I stared at that piece of code for an entire beer.
So ... $_ in the for loop, and $y are references ...
and you could have said
substr $x,5,3 =~ s/g/G/;
Instead of
my $y = \substr $x,5,3; $$y=~s/g/G/;
For the same result?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: regex syntax and idomatic Perl
by haukex (Archbishop) on Mar 23, 2017 at 11:20 UTC | |
by cbeckley (Curate) on Mar 23, 2017 at 14:44 UTC | |
Re^6: regex syntax and idomatic Perl
by AnomalousMonk (Archbishop) on Mar 23, 2017 at 01:43 UTC | |
by cbeckley (Curate) on Mar 23, 2017 at 02:05 UTC |
In Section
Seekers of Perl Wisdom