Help for this page
my @decoded = unpack '...', substr $bigscalar, $offset, $size;
substr( $bigscalar, $offset, $size ) = pack '...', @newValues;
my $replacement = pack '...', @newValues;
substr( $bigScalar, $offset, length $replacement ) = $replacement;
## Create a scalar
perl> $bigScalar = 'the quick brown fox jumps over the laxy dog';;
## The typo is now corrected.
perl> print $bigScalar;;
the quick brown fox jumps over the lazy dog
Once (shame on you!)
Twice (shame on me!)
More often than I'd like to be
All the time
Just when answering stupid polls
Who you callin' a fool?
I refuse to vote in this ridiculous poll
Results (508 votes). Check out past polls.