Re: Help- storing and printing array contents

2011-03-17 Thread Uri Guttman
> "SV" == Saral Viral writes: SV> I could solve it. Able to store in array, sort it, remove duplicates and SV> print it. Sure there may be better ways to do it, but it seems to SV> work. Amazing power of perl in so few lines. see my posted comments. you could reduce this by about half

Re: Help- storing and printing array contents

2011-03-17 Thread Uri Guttman
> "SV" == Saral Viral writes: SV> I am writing a perl script to scan all *.html and *.jsp files underneath a SV> directory recursively and print strings (urls) matching a pattern. SV> I can do that fine. Problem is when I try to store what it outputs to SV> console into an array, not

Re: Help- storing and printing array contents

2011-03-17 Thread Saral Viral
I could solve it. Able to store in array, sort it, remove duplicates and print it. Sure there may be better ways to do it, but it seems to work. Amazing power of perl in so few lines. Thanks Fixed Script below: #!/usr/bin/perl -w #use strict use File::Find; my $dir_to_process = "C:

Help- storing and printing array contents

2011-03-17 Thread Saral Viral
I am writing a perl script to scan all *.html and *.jsp files underneath a directory recursively and print strings (urls) matching a pattern. I can do that fine. Problem is when I try to store what it outputs to console into an array, not able to make it to print the contents. The reason I am tryin