Just another Perl shrine | |
PerlMonks |
Re^3: Producing 2 lists from a grep callby particle (Vicar) |
on Jun 17, 2002 at 12:26 UTC ( [id://175056]=note: print w/replies, xml ) | Need Help?? |
this code does not work -- !-d != -f! to implement this code properly, you must test for both -d, and -f, and ignore the rest. add next unless -d $_ or -f _; before the push statement and you'll have what you're looking for.
Update: changes as per Screamer Update 2: for more info on filetests, see -X under perlfunc
~Particle *accelerates*
In Section
Seekers of Perl Wisdom
|
|