Hi Monks,
I know for some of you it's stupid one but I am really stucked here. I want to code something where after running script it should ask for path from the user, after entering path and hitting enter it should read all the files listed in that directory line by line.
@files = <*>;
=foreach $file (@files) {
if (-f $file) {
print "This is a file: " . $file."\n";
}
if (-d $file) {
print "\n\nThis is a directory: " . $file."\n";
}
}