XP is just a number | |
PerlMonks |
Re: I could not use more than one IF ($_ = / /) condition for a single lineby davorg (Chancellor) |
on Jul 01, 2009 at 16:26 UTC ( [id://776493]=note: print w/replies, xml ) | Need Help?? |
$_ = /^(IPR\d+).*/ That doesn't do what you think it does. To match against a variable, you use the binding operator (=~) not the assignment operator. But, of course, you don't need to explicitly bind to $_ as that's the default operand for the match operator. So you can rewrite that as just:
In Section
Seekers of Perl Wisdom
|
|