Perl Config::Inifiles error

Simple code but can't open the .ini file I want to read:
---------------------------------------------------------------------
use Config::IniFiles;

my $ini = Config::IniFiles->new(-file => 'test.ini');
---------------------------------------------------------------------
error is:
Failed to open test.ini:  No such file or directory at line 3

Even when I give the full path to the file I get the same error.

Can someone tell me what I am doing wrong?
kkbenjAsked:
Who is Participating?
 
mankowitzConnect With a Mentor Commented:
Windows shortcuts aren't really dynamic links, like they are in unix. You can either point to the actual file location, or use something like this http://www.perlmonks.org/?node_id=263858
0
 
Kim RyanIT ConsultantCommented:
Maybe check of the file has read permission. Also do you use forward slashes in the path name?
0
 
kkbenjAuthor Commented:
This is Windows.  When I look at the file type, it is listed as a shortcut.

I have tried \\ on the path as well.
0
 
kkbenjAuthor Commented:
Thank you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.