[Roma.pm] - perfunc
Gianni Ceccarelli
dakkar at thenautilus.net
Wed Feb 6 05:11:08 PST 2008
On 2008-02-06 Aldo Calpini <dada at perl.it> wrote:
> $dec = eval "0b$bin";
Detto anche:
use Math::BigInt;
$dec=Math::BigInt->new("0b$bin")->numify()
Ok, non è meno orrendo... ma è un pelo più safe (se $bin eq
'0;system("rm -rf /")' ...)
--
Dakkar - <Mobilis in mobile>
GPG public key fingerprint = A071 E618 DD2C 5901 9574
6FE2 40EA 9883 7519 3F88
key id = 0x75193F88
You first parents of the human race... who ruined yourself for an apple,
what might you have done for a truffled turkey?
-- Brillat-savarin, "Physiologie du Gout"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/roma/attachments/20080206/f2ab8883/attachment.bin
More information about the Roma
mailing list