in reply to list array

print map "$_\n", @allfiles;

Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re: list array
by skyler (Beadle) on Feb 19, 2003 at 02:12 UTC
    Thanks for the info. Question if I want to only list *.rtf files out of the list. should I be using hash or could it be done another way... In my code I'm listing all the files but I only want to list "*.rtf" do you have any suggestions.
      Yes, see grep.
      print map "$_\n", grep /[.]rtf\z/i, @allfiles;

      Makeshifts last the longest.