in reply to choping a word!
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.
--
|
|---|