I am trying to write a script in which I should open a file that can be any file.
But I want to pass the name of file from the command prompt or some other way, so that I don't have to edit the script when ever the input file name changes.
Can any one help how can I do that ?
open (DBC, "test.txt")|| die "cant open dbc $!"; @dbc = <DBC>; close (DBC); the file is in the directory where my script is, that's why am not giving any path here