Welcome to the Monastery | |
PerlMonks |
Re: Check for another program availabilityby Discipulus (Canon) |
on Apr 10, 2021 at 20:19 UTC ( [id://11131092]=note: print w/replies, xml ) | Need Help?? |
Hello hrcerq, I see nothing too bad in your approach. For sure is not a portable way. But you can use File::Spec to split on the correct separator and catfile in a more portable way. Then you can profit of the cpan module File::SearchPath to accomplish the search. L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|