Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Access given folder to parse a file

by ArifS (Beadle)
on Nov 03, 2014 at 15:02 UTC ( [id://1105910]=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1105910]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-18 23:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found