If that date format is consistent, use substr!
$ perl -E ' > $filename = q{20130101Customer100.imp}; > say $filename; > substr $filename, 0, 8, q{}; > say $filename;' 20130101Customer100.imp Customer100.imp $
Cheers,
JohnGG
In reply to Re: Removing digits from a string
by johngg
in thread Removing digits from a string
by suneel.reddy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |