- or download this
my @decoded = unpack '...', substr $bigscalar, $offset, $size;
...
# or
substr( $bigscalar, $offset, $size ) = pack '...', @newValues;
- or download this
my $replacement = pack '...', @newValues;
substr( $bigScalar, $offset, length $replacement ) = $replacement;
- or download this
## 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