Re: writing a script

2003-02-16 Thread Michael Kelly
On Sat, Feb 15, 2003 at 01:03:50PM -0800, brady jacksan wrote: > Hi Hi, > I am writing a script that reads file from command line and places > each line from the files into an array, and prints out the total lines > read and then > each line read. > > while (defined ($files = <>)) { >

Re: writing a script

2003-02-15 Thread Paul
Another excellent tool (if you don't mind a tron of output) is use diagnostics -verbose; enable diagnostics; Paul --- ktb <[EMAIL PROTECTED]> wrote: > On Sat, Feb 15, 2003 at 01:03:50PM -0800, brady jacksan wrote: > > Hi > > > > I am writing a script that reads file from command line and

Re: writing a script

2003-02-15 Thread John W. Krahn
Brady Jacksan wrote: > > Hi Hello, > I am writing a script that reads file from command line and places > each line from the files into an array, and prints out the total lines > read and then > each line read. > > while (defined ($files = <>)) { ^^^^ Unless y

Re: writing a script

2003-02-15 Thread ktb
On Sat, Feb 15, 2003 at 01:03:50PM -0800, brady jacksan wrote: > Hi > > I am writing a script that reads file from command line and places > each line from the files into an array, and prints out the total lines > read and then > each line read. > > while (defined ($files = <>)) { > ch

Re: writing a script

2003-02-15 Thread Wiggins d'Anconia
Wiggins d'Anconia wrote: brady jacksan wrote: Hi I am writing a script that reads file from command line and places each line from the files into an array, and prints out the total lines read and then each line read. while (defined ($files = <>)) { chomp; print "Total lines in

Re: writing a script

2003-02-15 Thread Wiggins d'Anconia
brady jacksan wrote: Hi I am writing a script that reads file from command line and places each line from the files into an array, and prints out the total lines read and then each line read. while (defined ($files = <>)) { chomp; print "Total lines in the files:@files\." prin

Re: writing a script

2003-02-15 Thread John W. Krahn
Wiggins D'Anconia wrote: > > dakenah johnson wrote: > > > > I am trying to write a script that reads names fron standard input and > > matches it to a key in a given table and prints out the name and key > > > > Enter a first name or " ", to exit > > chomp { $name = }; > > while $name ne " " > >

Re: writing a script

2003-02-15 Thread Wiggins d'Anconia
dakenah johnson wrote: Hi, I am trying to write a script that reads names fron standard input and matches it to a key in a given table and prints out the name and key Enter a first name or " ", to exit chomp { $name = }; while $name ne " " if $name is in @given_table then print "$name maps