in reply to Substitution or removing characters from a file

open my $FIDR, '<', $radFile or die "Cannot open '$radFile' because: $ +!"; my ( $basename ) = <$FIDR> =~ m{/([^/]+)\.ruv$};

Update: fixed filehandle.

Replies are listed 'Best First'.
Re^2: Substitution or removing characters from a file
by hary536 (Novice) on May 17, 2012 at 23:01 UTC
    Hello, Thanks for the reply. Am late in acknowledging it, was on travel. I will try it out and let you know, how it went. Thanks.