torres09 has asked for the wisdom of the Perl Monks concerning the following question:
hey
I have a small issue that I have written a code where I have predefined my file , but now I want that the file should be entered by the user . So this is my code
my $file="Working_On.csv"; open(FILE,"<","$file"); my @lines=<FILE>;
so what I am doing is converting that csv file to an array . please tell me a way so that Working_On.csv should be entered by the user
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: user input file
by kennethk (Abbot) on Jun 19, 2013 at 13:36 UTC | |
by torres09 (Acolyte) on Jun 19, 2013 at 13:47 UTC | |
by MidLifeXis (Monsignor) on Jun 19, 2013 at 13:51 UTC | |
by torres09 (Acolyte) on Jun 19, 2013 at 13:56 UTC | |
by kennethk (Abbot) on Jun 19, 2013 at 15:37 UTC | |
Re: user input file
by 2teez (Vicar) on Jun 19, 2013 at 15:38 UTC | |
Re: user input file
by kcott (Archbishop) on Jun 19, 2013 at 14:15 UTC |
Back to
Seekers of Perl Wisdom