myomancer has asked for the wisdom of the Perl Monks concerning the following question:
But this just returned "Some String" rather than a number. If I remove 'my', the code works as I expected. This has upset my mental picture of what 'my' actually does. Please can anybody point me at a good resource to explain the subtleties if 'my'? Many thanks, Myomancermy($ok) = grep {/Some String/} @anArray;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Puzzled over 'my'
by shenme (Priest) on Oct 23, 2003 at 12:50 UTC | |
|
Re: Puzzled over 'my'
by Anonymous Monk on Oct 23, 2003 at 12:53 UTC | |
|
Re: Puzzled over 'my'
by tadman (Prior) on Oct 23, 2003 at 20:47 UTC |