Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: problems with perl input

by Athanasius (Chancellor)
on Mar 20, 2013 at 02:26 UTC ( #1024417=note: print w/replies, xml ) Need Help??


in reply to problems with perl input

Hello jarwulf, and welcome to the Monastery!

You need to convert $inputFile into an absolute path before passing it to splitpath(). For example:

my ($inputFileVolume, $inputFileDir, $name) = File::Spec->splitpath(File::Spec->rel2abs($inputFile));

Or you could consider using File::Spec->curdir(). See File::Spec.

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1024417]
help
Chatterbox?
[Discipulus]: for the moment I just lead the Perl 99 bottle of beer ladder..
[Discipulus]: fibonacci in 34.. uh!!
[choroba]: Without totally changing the approach, I can't squeeze it more.
[Discipulus]: i'm stuck at 54 ;=( but for me is good enough

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2017-10-20 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (260 votes). Check out past polls.

    Notices?