The problem that we all seem to be having with your question is that print prints the contents of the string already. If you want something different from what print does, you'll need to be more specific. Wanting to see "the structure of the string" is not explicit enough. Are you saying that you want whitespace converted to something more visible? Do you want one of those little arrow things everywhere a \n shows up? Do you want little dots in place of spaces, and long arrows in place of tabs? Do you want color highlighted sentence structure charts?
Maybe you want to know all of the octets, dumped in hex format. Maybe you want HTML::Entities to encode your strings so that ampersands show up with the & encoding.
Whatever it is that you want, you need to tell us exactly what it is. Otherwise, the best answer is print, because it prints the contents of a string.
Dave
In reply to Re: String contents
by davido
in thread String contents
by perlyr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |