Raymond has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use warnings; #extract column with unpack $a = "To be or not to be"; $b = unpack("x6 A6", $a); #skip 6, grab 6 print $b; ($b, $c) = unpack("x6 A2 x5 A2", $a); #forward 6, grab 2; backward 5 +, grab 2 print "$b\n$c\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: example 7.pl
by choroba (Cardinal) on Aug 05, 2013 at 20:52 UTC | |
by Laurent_R (Canon) on Aug 05, 2013 at 22:33 UTC | |
|
Re: example 7.pl
by toolic (Bishop) on Aug 05, 2013 at 20:59 UTC | |
|
Re: example 7.pl
by AnomalousMonk (Archbishop) on Aug 06, 2013 at 13:18 UTC |