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