At 01:28 AM 2/12/2004 +1100, David Inglis wrote:
"bloggs, joe" which I then spilt into 2 using @names=split(/\,/, $contact)
How about:
#!perl -w
use strict;
my $contact = "bloggs, joe";
@names=split(/, /, $contact);
print @names;
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comman
On Feb 12, David Inglis said:
>Can anybody tell me what I'm doing wrong I have a variable with a value
>"bloggs, joe" which I then spilt into 2 using @names=split(/\,/, $contact)
>I then have $names[1] with a space at the front, I have tried to remove
>it by doing $name[1]=~tr/\s//; but it does
"Randy W. Sims" wrote:
>
> On 02/11/04 09:28, David Inglis wrote:
> > Can anybody tell me what I'm doing wrong I have a variable with a value
> > "bloggs, joe" which I then spilt into 2 using @names=split(/\,/, $contact)
> > I then have $names[1] with a space at the front, I have tried to remove
On 02/11/04 09:28, David Inglis wrote:
Can anybody tell me what I'm doing wrong I have a variable with a value
"bloggs, joe" which I then spilt into 2 using @names=split(/\,/, $contact)
I then have $names[1] with a space at the front, I have tried to remove
it by doing $name[1]=~tr/\s//; but it d
Can anybody tell me what I'm doing wrong I have a variable with a value
"bloggs, joe" which I then spilt into 2 using @names=split(/\,/, $contact)
I then have $names[1] with a space at the front, I have tried to remove
it by doing $name[1]=~tr/\s//; but it does not remove the leading space.
Any