Hi,
I do not know if my subject is right, but I at least have your attention
Recently I posted a perl
question related to this.
Now when someone starts my program using an asterics:
./dirinfo.pl /orapkg/ora0*/oradata/
It can contain multiple directories. The following command shows me those directories : "ls -ad /orapkg/ora0*/oradata "
But how can I import this array? The following does not work :
$directory = @ARGV[0];
if ( $directory =~ /.*\\*.*/ ) { # This works
@array=`ls -ad $directory`; # This does not work !
@arra1=`ls -lad $directory | awk '{print $9}` # Also does not work
@arra2=`eval ls -lad $directory | awk '{print $9}`# Also does not work
}
Any help will be much apreciated !!
Regs David