in reply to Re^2: unpacking unsigned long longs
in thread unpacking unsigned long longs
The necessary info is in Config.
$ perl -MConfig -le'print $Config{ivsize}' 4
You can see that value in perl -V as well.
Of course, you could just try unpack 'Q'.
$ perl -le'unpack "Q", chr(0)x8; print "ok"' Invalid type 'Q' in unpack at -e line 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: unpacking unsigned long longs
by questionnaire (Novice) on Jul 06, 2009 at 17:11 UTC | |
by ikegami (Patriarch) on Jul 06, 2009 at 17:23 UTC | |
|
Re^4: unpacking unsigned long longs
by questionnaire (Novice) on Jul 07, 2009 at 17:29 UTC | |
by ikegami (Patriarch) on Jul 07, 2009 at 17:44 UTC |