/usr/src/perl/pod/perlfaq4/How_do_I_extract_selected_column.pod

How do I extract selected columns from a string?

Use substr or unpack, both documented in the perlfunc manpage.