Sary has asked for the wisdom of the Perl Monks concerning the following question:
And what is that dot after the $_ thing? man..... If someone could clarify the above for me please. Also this be my first post on the monastery, so thrash me lightly :]@myNames = ('Larry jackson', 'Curly jackson', 'Moe Sanders'); print "Who's on the list:\n"; foreach (@myNames) { if($_ =~ "jackson") print $_ . "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: On patterns and more
by ELISHEVA (Prior) on Mar 06, 2011 at 12:57 UTC | |
|
Re: On patterns and more
by Sherm (Sexton) on Mar 06, 2011 at 13:05 UTC | |
|
Re: On patterns and more
by ikegami (Patriarch) on Mar 06, 2011 at 17:12 UTC | |
|
Re: On patterns and more
by Khen1950fx (Canon) on Mar 07, 2011 at 08:12 UTC | |
|
Re: On patterns and more
by chrestomanci (Priest) on Mar 06, 2011 at 20:28 UTC | |
|
Re: On patterns and more
by cmac (Monk) on Mar 07, 2011 at 03:37 UTC | |
|
Re: On patterns and more
by BrimBorium (Friar) on Mar 06, 2011 at 19:15 UTC | |
by ikegami (Patriarch) on Mar 07, 2011 at 04:35 UTC | |
|
Re: On patterns and more
by perliff (Monk) on Mar 09, 2011 at 13:09 UTC |