Hi list

Would someone be so kind as to share some light on this for me.

I have the following code:

($fileName) = ($_ =~ /regexcode/o);

Which gives me the correct data.

But if I make it like so (note the () missing around the variable):

$fileName = ($_ =~ /regexcode/o);

Whats the difference.

Any tips / feedback would greatfully be appreciated.

Kind Regards
Brent Clark

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to