On 9/2/07, Chris E. Rempola <[EMAIL PROTECTED]> wrote:
> Thanks for all your help thus far.  If I wanted to view the numbers to
> the right of the pound sign(#) also, how would I go about doing that?
> Is creating another value to the key the right idea?
snip
>            if ( /#.*\d+\s+\d+\s+(\S*)/ ) {
>             $key = $1;
snip

Depending on what you want to do with the data you can either grab the
both numbers and the email address like this

if (/#(\d+\s+\d+\s+\S+)/) {
    $key = $1

or you can grab them individually like this

if (/#(\d+)\s+(\d+)\s+(\S+)/) {
    my ($num1, $num2, $email) = ($1, $2, $3);

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to