Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: How to pass Windows filepaths on command line

by bangor (Monk)
on Aug 28, 2014 at 17:53 UTC ( [id://1098895]=note: print w/replies, xml ) Need Help??


in reply to Re: How to pass Windows filepaths on command line
in thread How to pass Windows filepaths on command line

I'm using Getopt::Lucid. Everything works fine on Unix.
my $in_file = $opt->get_file; open(my $fh, "<:encoding(utf8)", $in_file) or die "Could not open $in_file: $!";

Replies are listed 'Best First'.
Re^3: How to pass Windows filepaths on command line
by toolic (Bishop) on Aug 28, 2014 at 17:57 UTC
    Your error message has single quotes, but your code does not. Try without the single quotes:
    perl test.pl --file=test.txt

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2026-03-15 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.