Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^5: hex numbersby haukex (Archbishop) |
on Jan 14, 2021 at 19:04 UTC ( [id://11126925]=note: print w/replies, xml ) | Need Help?? |
Using string eval on a proper hex string constant can not be unsafe. Of course not, but again, it is a matter of how likely it is the OP is doing that vs. the string coming from outside the program. While warning aubout string eval composed of user input or some such is appropriate, it is not for this construct. Your interpretation of "This works but is NOT recommended, and can be unsafe" is very different from mine, but I've already explained myself. Warnings should be correct. Saying to a girl "if you kiss that boy you'll get pregnant!" is, albeit often turning out true in the long run, incorrect and misleading. I don't agree with that comparison; I personally think stringy eval is dangerous enough to compare it to unprotected sex instead of kissing, in which case your post is the one that is misleading. But this moving into the area of opinions, which we could argue about all day. I did say that your clarification of the warning is a good thing, I just personally wouldn't have worded it as strongly as you did.
In Section
Seekers of Perl Wisdom
|
|