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
> -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;