abdan has asked for the wisdom of the Perl Monks concerning the following question:
Why the regex br variable $2 vanish in :
How to solve to keep it alive around thatdo{ if ($whole =~ /^(.*?)^(\*{5,}..?^\*SRC)/mscg) { print "\n=======\n".$1."\n=======\n".$2;} } while($2);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: A regex BR variable dead in following line/command
by haukex (Archbishop) on Nov 12, 2021 at 14:55 UTC | |
by LanX (Saint) on Nov 12, 2021 at 16:40 UTC | |
Re: A regex BR variable dead in following line/command
by roboticus (Chancellor) on Nov 12, 2021 at 13:49 UTC | |
Re: A regex BR variable dead in following line/command
by Corion (Patriarch) on Nov 12, 2021 at 12:13 UTC | |
Re: A regex BR variable dead in following line/command
by hippo (Bishop) on Nov 12, 2021 at 12:25 UTC | |
by haukex (Archbishop) on Nov 12, 2021 at 15:00 UTC | |
by hippo (Bishop) on Nov 12, 2021 at 16:22 UTC | |
Re: A regex BR variable dead in following line/command
by LanX (Saint) on Nov 12, 2021 at 12:01 UTC |
Back to
Seekers of Perl Wisdom