Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Subroutine pos seems to just return the position of last match in the string.
And I wonder why is it possible to assign a value to it?pos($string) = 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How is assigning to pos() possible?
by kcott (Archbishop) on Jun 27, 2015 at 05:41 UTC | |
|
Re: How is assigning to pos() possible?
by davido (Cardinal) on Jun 27, 2015 at 05:41 UTC | |
|
Re: How is assigning to pos() possible?
by Anonymous Monk on Jun 27, 2015 at 14:28 UTC |