in reply to Re: Access given folder to parse a file
in thread Access given folder to parse a file

I tried your script replacing with the following and getting an error-
use Win32 qw(folder(1)); my $directory = Win32::GetFolderPath(folder(1));
Error: "folder(1)" is not exported by the Win32 module Can't continue after import errors at c:\temp\dir5B6B.tmp\AccessFolder +.pl line 8. BEGIN failed--compilation aborted at c:\temp\dir5B6B.tmp\AccessFolder +line 8.
Please let me know.

Replies are listed 'Best First'.
Re^3: Access given folder to parse a file
by Corion (Patriarch) on Nov 03, 2014 at 15:09 UTC

    Please explain what the following line is supposed to do:

    use Win32 qw(folder(1));

    Where did you find this syntax documented in the documentation of Win32?