$_ = /^(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:
/^(IPR\d+).*/
In reply to Re: I could not use more than one IF ($_ = / /) condition for a single line
by davorg
in thread I could not use more than one IF ($_ = / /) condition for a single line
by jawsai1224
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |