> -----Original Message-----
> From: Conor Lillis [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 11, 2002 8:08 AM
> To: PERL Beginners (E-mail); Perl-Win32-Users (E-mail)
> Subject: Data manipulation problem
> 
> ...
>       # split @data1, to isolate the e-mail address from the name eg.
> [EMAIL PROTECTED]
>       @emaildata = split(/,/, @data1);                
                               ^^^^^^
The second arg to split should be a string, not an array. @data1 
is being evaluated in scalar context, which returns the number of 
elements in @data1. This is where the "1" is coming from.

> 
>       # print the e-mail address, NOT. This prints an 
> integer, I am not
> sure why. HELP this where it goes pear-shaped.
>       printf "emaildata is @emaildata[0]";    

This should be $emaildata[0], not @emaildata[0], as has been mentioned.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to