Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: the repetition operator does not repeat "\x00" Why?

by brian_d_foy (Abbot)
on Oct 10, 2006 at 21:13 UTC ( #577498=note: print w/replies, xml ) Need Help??


in reply to the repetition operator does not repeat "\x00" Why?

When you really want to see the data, try Devel::Peek:

use Devel::Peek qw(Dump); $_ = "\x00" x 26; print Dump($_); $_ = "\x30" x 26; print Dump($_); __END__ SV = PV(0x1800884) at 0x1800514 REFCNT = 1 FLAGS = (POK,pPOK) PV = 0x3015e0 "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" +\0 CUR = 26 LEN = 27 SV = PV(0x1800884) at 0x1800514 REFCNT = 1 FLAGS = (POK,pPOK) PV = 0x3015e0 "00000000000000000000000000"\0 CUR = 26 LEN = 27
--
brian d foy <brian@stonehenge.com>
Subscribe to The Perl Review

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://577498]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2021-10-24 16:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?