sandy1028 has asked for the wisdom of the Perl Monks concerning the following question:
Can anyone please tell me how to check of $lines =~
matches \> or \< in a single statement
if($lines =~ m/\>/){ $lines =~ s/^\>\s//gi; if($lines =~ m/\</){ $lines =~ s/^\<\s//gi;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Match the starting \>
by CountZero (Bishop) on May 15, 2009 at 06:19 UTC | |
by cdarke (Prior) on May 15, 2009 at 08:22 UTC | |
Re: Match the starting \>
by almut (Canon) on May 15, 2009 at 05:45 UTC | |
Re: Match the starting \>
by grizzley (Chaplain) on May 15, 2009 at 05:48 UTC | |
Re: Match the starting \>
by ww (Archbishop) on May 15, 2009 at 11:16 UTC | |
Re: Match the starting \>
by Crian (Curate) on May 15, 2009 at 08:47 UTC | |
by almut (Canon) on May 15, 2009 at 09:42 UTC |
Back to
Seekers of Perl Wisdom