A
Another Brian
I'm trying to get a list of the files and directories. I was using:
my @FILES = `ls -ld $INPUT`;
Where the value being passed into $INPUT includes a wild card that
identifies lots of files and directories. I am getting this error:
ksh: /acct/v/vobadm/bin/stattest.pl: 0403-027 The parameter list is
too long.
I do not want to descend into subdirectories. I tried using readdir
but if $INPUT contains a wild card, it lists the files in the
subdirectories.
Is there a Perl equivalent of "ls -d $INPUT"?
Thank you,
Brian
my @FILES = `ls -ld $INPUT`;
Where the value being passed into $INPUT includes a wild card that
identifies lots of files and directories. I am getting this error:
ksh: /acct/v/vobadm/bin/stattest.pl: 0403-027 The parameter list is
too long.
I do not want to descend into subdirectories. I tried using readdir
but if $INPUT contains a wild card, it lists the files in the
subdirectories.
Is there a Perl equivalent of "ls -d $INPUT"?
Thank you,
Brian