[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] 4294967295



At 5:13 PM -0700 7/12/99, Rick Delaney wrote:
|John Porter wrote:
|> The variable in question is (apparently) $_,
|> because in
|>         $myEmail = ~ s/%40/@/g;
|> the "negation" operator is being applied to the result of
|>         s/%40/@/g;
|Since you are kind enough to test a development version of perl, perhaps
|you'd submit the bug report for this?  Read-onlyness should have nothing
|to do with bitwise-negation.

It doesn't. John could have perhaps worded it a little better, but he's
saying that the read-only complaint is because

$myEmail = ~ s/%40/@/g;

is being interpreted by perl as:

1. Change %40 to @ everywhere in $_.
2. Bit-wise negate the (scalar) result.
3. Assign the result of step 2 to $myEmail.

It's step 1 that's causing the read-only complaint (as it should), not step
2 (as it shouldn't).

Brian



==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe