If I invoke a Perl script that takes a pathname (with wildcard) as its only argument, how do I capture the path without the wildcard?
Ex:
perlscript.pl /Users/andyv/ps/*
How do I capture the full path minus the wildcard into a variable (just /Users/andyv/ps/)??
Thanks!
AndyV
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.