If you're specifically interested in just the first 16 characters, you could also look into substr( EXPR, OFFSET, LENGTH). When I saw "host1 BUNCHOFDATAONALINE" I assumed that splitting on whitespace was what you were looking for, but when you phrase it as "one being the first 16 characters", substr comes to mind.
You may wish to examine the differences between split and substr to see which would suit you better.
$/ = q#(\w)# ; sub sig { print scalar reverse join ' ', @_ } + sig map { s$\$/\$/$\$2\$1$g && $_ } split( ' ', ",erckha rlPe erthnoa stJu +" );
In reply to Re^5: Seperating individual lines of a file
by chargrill
in thread Seperating individual lines of a file
by tgrossner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |