in reply to Substitution or removing characters from a file

Try this:
my ($NameWithoutExtension)=$basename=~/(RDL.+)\.\w+/;

             I hope life isn't a big joke, because I don't get it.
                   -SNL

Replies are listed 'Best First'.
Re^2: Substitution or removing characters from a file
by hary536 (Novice) on May 17, 2012 at 22:59 UTC
    Hello, Thanks for the reply. Am late in acknowledging it, was on travel. Thanks, it worked.