<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Is the file being read from the level of the module?<br>
(Where it doesn't exist.)<br>
<br>
Teak<br>
<br>
<blockquote
cite="mid:CALT88GgHGJxWm86pmmi9soSfjRvst-PwrBBrML=OxXZftxGLaQ@mail.gmail.com"
type="cite">I'm having troubles loading files from the current
working directory.
<div><br>
</div>
<div>e.g.</div>
<div>running this:</div>
<div>
<div> use Parse::CPAN::Meta;</div>
<div>
<div> my $distmeta =
Parse::CPAN::Meta->load_file('META.json');</div>
</div>
<div>
<div>yields:</div>
<div> "can't open META.json for reading: No such file or
directory at
/home/vagrant/perlbrew/perls/perl-5.14.2/lib/5.14.2/Parse/CPAN/Meta.pm
line 87."</div>
<div><br>
</div>
<div>
even though the file is indeed in the same directory as the
script and the same directory from which I launch the script</div>
<div><br>
</div>
<div>I verified that the current working directory is correct
by running:</div>
<div>
use Cwd;</div>
<div>
<div> my $dir = cwd();</div>
<div> print $dir</div>
</div>
<div>which yields the correct working directory</div>
<div><br>
</div>
<div><br>
</div>
<div>I've tried passing simple file names and fully-qualified
files names with path but neither seems to work. It doesn't
seem to be just that API call shown above, a couple others
API calls I've tried don't seem to work either.</div>
<div><br>
</div>
<div>I must be missing something basic. Ideas?</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Luke</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
kc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:kc@pm.org">kc@pm.org</a>
<a class="moz-txt-link-freetext" href="http://mail.pm.org/mailman/listinfo/kc">http://mail.pm.org/mailman/listinfo/kc</a></pre>
</blockquote>
<br>
</body>
</html>