We don't bite newbies here... much | |
PerlMonks |
Re: pos()atively mysterious.by rob_au (Abbot) |
on Dec 16, 2002 at 10:33 UTC ( [id://220154]=note: print w/replies, xml ) | Need Help?? |
The problem here is that the matching is being performed against a quoted string rather than a named variable - From the documentation for pos:
If your code was modified thus, matching against a variable rather than a quoted string, it would execute without error:
perl -le 'print+unpack("N",pack("B32","00000000000000000000000111111001"))'
In Section
Seekers of Perl Wisdom
|
|