... assigning a numeric value to $binaddr, but treating it as though it contained the string '100010' ...
But isn't the stringization of 100,010 (decimal) exactly '100010'?
In this case, quoting is not needed.c:\@Work\Perl\monks>perl -wMstrict -MData::Dump -le "my $n = 100_010; my $b = qq{0b$n}; dd $n, $b; " (100010, "0b100010")
Give a man a fish: <%-{-{-{-<
In reply to Re^2: Converting Binary to hex
by AnomalousMonk
in thread Converting Binary to hex
by Himaja
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |