Re: searching arrays with foreign element

2002-04-30 Thread drieux
On Tuesday, April 30, 2002, at 04:07 , Johnson, Shaunn wrote: > > $file="command.txt"; > $file2="command2.txt"; > > @array=; > @array2=; wouldn't it be nice if open(file, $file ) or die "unable to open file $file:$!\n"; open(file2, $file2 ) or die "unable to open file $file2:$!

Re: searching arrays with foreign element

2002-04-30 Thread bob ackerman
On Tuesday, April 30, 2002, at 04:07 PM, Johnson, Shaunn wrote: > Howdy: > > I'm looking for examples of how to use element 0 > in one array as a search pattern and looking in > other arrays for that pattern. Here's what I have > so far ... > > [snip code] > #!/usr/bin/perl -w > use diagnostic

searching arrays with foreign element

2002-04-30 Thread Johnson, Shaunn
Howdy: I'm looking for examples of how to use element 0 in one array as a search pattern and looking in other arrays for that pattern. Here's what I have so far ... [snip code] #!/usr/bin/perl -w use diagnostics; # test to read two files into two arrays # do a search for each *FIRST* element i