[robin@robin robin]$ perl -le 'print \1' SCALAR(0xd8b8)
will print yes! if you pass it a pair of strings like foo fooxfoobarshift() =~ /(.*)/; shift() =~ /($1)x\1/ && print "yes!\n"
In reply to Re: regex question: $1 vs. \1
by robin
in thread regex question: $1 vs. \1
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |