On Dec 14, Jenda Krynicky ([EMAIL PROTECTED]) typed:
Jenda: > I didnt want the return status. In this example I wanted @
Jenda: > And I didnt want to use another IF statement
Jenda: > if ( $From =~ /(@)/ )
Jenda: > {
Jenda: > $from_ = $1;
Jenda: > }
Jenda:
Jenda: ($from_) = $From =~ /(@)/;
Jenda:
Jenda: Both pairs of brackets are needed.
Jenda:
Jenda: Jenda
Excellent! That's what I was looking for.
I saw examples of those, but the left-hand side had more than one
variable. So I kept thinking the () were optional.
Now I know ....
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>