Brian L. Matthews wrote: > > $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). OK, now it's fun again, except for me. I think I bruised my hand when I slapped my forehead. But now I don't get why $_ should ever be read-only. What is the purpose of this? Does this mean I can't do fun stuff like $total_replacements = s/$foo/$bar/g + s/$bar/$baz/g; anymore? -- Rick Delaney rick.delaney@home.com ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe