Eric Roode on Tue, 9 Apr 2002 08:57:16 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

How big is an array?


mjd-perl-pm@plover.com writes:
 [...]
 > 
 > So for example the string "BLARF" probably takes about 30 bytes.  (24
 > overhead plus 6 for "BLARF\0")

Perl uses null-terminated strings internally?   How odd.  How, then,
is a string with embedded NUL characters represented?

----------------------------------------------------------------------
Eric J. Roode                                            eric@myxa.com
Senior Software Engineer, Myxa Corporation
$_{"@{[sort/./g]}"}.=$_ for sort<>;$_[s/
(.)/ $1/g].=$_ for sort%_;print@_[1..99]
**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**