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
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