in reply to Regex Help

A global regex in scalar (or void) context only matches once. Also, there is only a $DIGIT variable made for each set of capturing parentheses in your regex. What you want to use is:
@handles = $result =~ /\((.*?)\)/g; print "Handles are: @handles\n";

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Replies are listed 'Best First'.
Re: Re: Regex Help
by dru145 (Friar) on Sep 07, 2001 at 07:37 UTC
    ah. I never knew you could assign an array like that. Works like a champ now. Thanks -Dru