in reply to Splitting a string in Perl
I guessed at the 10 and 20, but those are the column widths. The * means "and everything else".my ($memAddr, $data, $ascii) = unpack( "A10A20A*", $line );
Then, you will want to massage in some fashion the various bits. So, something like $data =~ s/\s//g; to remove the whitespaces. Etc.
|
|---|