Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Find a file in a list of directories

by demerphq (Chancellor)
on May 06, 2002 at 16:50 UTC ( #164382=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    return (map{-e "$_/$target" ? "$_/$target" : ()} @dir)[0];
    
  2. or download this
    sub FileFinder {
      my $target=shift;
      -e "$_/$target" && return "$_/$target" foreach @_;
      undef 
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://164382]
help
Chatterbox?
[Discipulus]: there is a way on linux to produce { using ALT-123 keypad sequence?

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2017-12-13 10:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (355 votes). Check out past polls.

    Notices?