$dino = "I fear that I'll be extinct after a few million years."; if ($dino =~ /that (\w*) (\w*) (\w*) after/) { print "That said '$1' '$2' '$3' years.\n"; }
My question is that the above code should print I'll , be , extinct according to definition of match variables , but it's not printing anything , I want to know how perl is treating I'll , it's not a word then how we can match I'll , Kindly correct me what I am doing wrong.
In reply to Match variables : Beginner in perl by Perl_Programmer1992
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |