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 |