Read the "Smart Matching" section of Synopsis 4 for details.$i = 1; if ( $i ~~ 1 ) { # $i == 1 $i = 'foo'; if ( $i ~~ 'foo' ) { # $i eq 'foo' $i = 'foo'; if ( $i ~~ m/fo(.)/ ) { # $1 contains 'o'
rx is a replacement for qr. rx:perl5 means use perl5-compatible regular expressions. More details about rx in Synopsis 5.
In reply to Re^2: Pugs Tic Tac
by bmann
in thread Pugs Tic Tac
by mkirank
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |