Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by GrandFather (Saint)
on Oct 11, 2006 at 03:41 UTC ( #577524=note: print w/replies, xml ) Need Help??


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

or using Data::Dump::Streamer:

use strict; use warnings; use Data::Dump::Streamer; $_ = "\x00" x 26; Dump($_); $_ = "\x30" x 26; Dump($_);

Prints:

$VAR1 = "\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"; $VAR1 = '00000000000000000000000000';

DWIM is Perl's answer to Gödel

Log In?
Username:
Password:

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

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







    Results (89 votes). Check out past polls.

    Notices?