"Anish Kumar K." <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > - Original Message -
> > From: "Anish Kumar K." <[EMAIL PROTECTED]>
> >
> > Hi
> >
> > Suppose this is the line
> > after_click_color = cc6600
> >
> >
> > if I use
> > @recField=split(/=/,$_);
> >
> > I will ge
On Fri, 19 Nov 2004 12:00:44 +0530, Anish Kumar K.
<[EMAIL PROTECTED]> wrote:
> I tried
> $recField[0] =~ s/" "//g;
This is a FAQ and is well discussed in this group's Usenet archives as
well on perldoc.com under Faq4:
http://perldoc.com/perl5.8.4/pod/perlfaq4.html
http://perldoc.com/perl5.8.4
after_click_color
$recField[1] as cc6600
Thanks
Anish
- Original Message -
From: "Michael David" <[EMAIL PROTECTED]>
To: "Anish Kumar K." <[EMAIL PROTECTED]>; "beginners perl"
<[EMAIL PROTECTED]>
Sent: Friday, November 19, 2004 12:06 PM
Subject: R
Try this
@recField = split /\s*=\s*/, $_;
- Original Message -
From: "Anish Kumar K." <[EMAIL PROTECTED]>
To: "beginners perl" <[EMAIL PROTECTED]>
Sent: Friday, November 19, 2004 5:30 PM
Subject: variable space
Hi
Suppose this is the line
after_click_c
Hi
Suppose this is the line
after_click_color = cc6600
if I use
@recField=split(/=/,$_);
I will get
$recField[0] as after_click_color
and
$recField[1] as cc6600
If there is space before/after = that will also be involved..What if I don;t
wanted the space..I wanted to trim out the spaces befo