You want to read up on some basic documentation first, such as substr. To get the first four letters of your filename, you would do something like:
my $filename = '0092042095432.dat'; my $part = substr( $filename, 0, 4 );
Simple questions like this are best asked in the Chatterbox.
--In reply to Re: choping a word!
by grinder
in thread choping a word!
by Gerryjun
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |