in reply to Reading part of a file name

Hi, Give some more information then only we will help you.

Anyway try this, if i understood your question correctly.

use strict; use warnings; my $string = "FileName.089-09_08_45"; $string =~ s/^[^\d]+//g; ##if Filename doesn't contain digits #or $string =~ s/^[^\.]+\.//g; ##if Filename doesn't contain dots print $string; __END__ 089-09_08_45

Regards,
Velusamy R.


eval"print uc\"\\c$_\""for split'','j)@,/6%@0%2,`e@3!-9v2)/@|6%,53!-9@2~j';