in reply to Re^2: Processing All Files in a Directory Recursively under Windows OS
in thread Processing All Files in a Directory Recursively under Windows OS
Please use proper HTML formatting and preview your node before you post it.
Your variable $root is not what you think it is. Print it out like this:
my $root = "Hello world"; print "Root is >>$root<<\n";
In your case, when you read $root from STDIN it has a newline appended to it. You should remove that by using the chomp function:
chomp $root;
|
|---|