Using ?? makes the whiles act like ifs.
perl> $_="a1 a2 a3"; if( /a(\d)/g ){ print $1, ' ', pos( $_ ); } if( /a(\d)/g ){ print $1, ' ', pos( $_ ); } 1 2 2 5
In reply to Re: Bizarreness in ?PATTERN? and g
by BrowserUk
in thread Bizarreness in ?PATTERN? and g
by BUU
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |