borisz has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I wonder, why I can not repeat a binary zero. Can somebody explain this?
I wonder, why I can not repeat a binary zero. Can somebody explain this?
use Data::Dumper; $_ = "\x00" x 26; print Dumper($_); $_ = "\x30" x 26; print Dumper($_); __OUTPUT__ $VAR1 = ""; $VAR1 = "00000000000000000000000000";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: the repetition operator does not repeat "\x00" Why?
by Hofmator (Curate) on Oct 10, 2006 at 11:02 UTC | |
by djp (Hermit) on Oct 11, 2006 at 03:32 UTC | |
by Hofmator (Curate) on Oct 11, 2006 at 06:09 UTC | |
Re: the repetition operator does not repeat "\x00" Why?
by tinita (Parson) on Oct 10, 2006 at 13:09 UTC | |
Re: the repetition operator does not repeat "\x00" Why?
by brian_d_foy (Abbot) on Oct 10, 2006 at 21:13 UTC | |
Re: the repetition operator does not repeat "\x00" Why?
by GrandFather (Saint) on Oct 11, 2006 at 03:41 UTC |
Back to
Seekers of Perl Wisdom