>Right. readdir() expects a DIRHANDLE as the argument, while grep()
>expects a LIST as the second argument.
>
>> which is fine- my careless reading of my other code got the misuse
>> of <> stuck in my head- that kept me from seeing the proper
>> solution.
>
>Make it a habit to study the docs for the functions you are using:
>
> perldoc -f grep
> perldoc -f readdir
oddly- the grep documentation in perldoc doesn't even mention
filehandles. readdir does show proper use though- when i looked up grep
in the perldocs, the issue remained unclear to me. But, of course, it
was my self induced "blindness" that kept me from seeing the solution.
Now, a <FILEHANDLE> might be seen in a list context- but connecting
that to grep {code} @list; was just too much for my little brain to
handle at that time *laugh*
>
>--
>Gunnar Hjalmarsson
>Email: http://www.gunnar.cc/cgi-bin/contact.pl
willy
http://www.hackswell.com/corenth
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>