in reply to A problem with using the split command
foreach my $pwd (split('/\/\','/\foo/\foo1/\foo2')) [download]