starface245 has asked for the wisdom of the Perl Monks concerning the following question:
My file word.txt contains multiple terms in the file.. Just examples in the file..
foo
bar
fish
cat
I'm trying to achieve @string = ('foo','bar','fish','cat'); Expect typing all the terms out, it is all in one file.
@ARGV[0] will open the word.txt fileopen (file, @ARGV[0]); @strings = <file>;
I'm trying to achieve @string = ('foo','bar','fish','cat'); Expect typing all the terms out, it is all in one file.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: read file from ARGV
by Kenosis (Priest) on Feb 02, 2013 at 07:24 UTC | |
Re: read file from ARGV
by 2teez (Vicar) on Feb 02, 2013 at 08:56 UTC | |
Re: read file from ARGV
by nithins (Sexton) on Feb 02, 2013 at 07:33 UTC | |
by 2teez (Vicar) on Feb 02, 2013 at 09:13 UTC |
Back to
Seekers of Perl Wisdom