Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Perl5 Internal Representation of string variable

by flexvault (Monsignor)
on Oct 02, 2010 at 18:35 UTC ( #863098=note: print w/replies, xml ) Need Help??


in reply to Re: Perl5 Internal Representation of string variable
in thread Perl5 Internal Representation of string variable

Thank you

ig answer pointed to Perl 5 Internals - Internal Variables, which if I had previously known about, I probably would not have wasted anyone's time. Using Devel::Peek, I could see exactly how the internal representation of the string variable was defined. Great answer.

Marshall's answer was correct initially, since all string type scalars end with a '\0' as well as allow them in the content.

I compile all my own versions of perl, so I have often looked at the source, but I agree it is "not a trivial endeavor."

  • Comment on Re^2: Perl5 Internal Representation of string variable

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://863098]
help
Chatterbox?
[ovedpo15]: If I use "unless(opendir(my $dir, $test_dir))" why does it give me error "Global symbol "$dir" requires explicit package name at" if I used "my"? If I use my $dir before the opendir it works.. but why?

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2018-04-22 15:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?