Re: substitute and assign in one line

2007-04-17 Thread John W. Krahn
Karyn Williams wrote: > This is probably very simple, but I'm not seeing it. I want to do the > following: > > > my $lfirst = $first; > $lfirst =~ s/[^a-zA-Z]//g; > > in one line. I tried : > > my $lfirst = ($first =~ s/[^a-zA-Z]//g); > > but it returned either a blank or null. > > I want to

RE: substitute and assign in one line

2007-04-17 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -Original Message- > From: Karyn Williams [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 17, 2007 15:14 > To: Perl Beginners > Subject: substitute and assign in one line > > This is probably very simple, but I'm not seeing it. I want to do the > following: > > > my $lfirst = $first;