in reply to Re: Re: Re: backreference question.
in thread backreference question.
goes into an infinite loop. No internal setting of pos, no pattern matching, whatever, same value. I can get the while loop to work(?) by making resp return a reference to a global scalar, and deref it in the while conditional with ${resp()}, but what module author would think about that?sub resp { "abcdefg" } while (resp =~ /(.)/g) { print $1 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: backreference question.
by tilly (Archbishop) on Jun 01, 2004 at 09:20 UTC | |
|
Re: Re: Re: Re: Re: backreference question.
by Qiang (Friar) on Jun 01, 2004 at 17:45 UTC |