Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: How to pass a file to GetOpt

by Anonymous Monk
on Jul 10, 2012 at 23:26 UTC ( #980978=note: print w/replies, xml ) Need Help??


in reply to Re: How to pass a file to GetOpt
in thread How to pass a file to GetOpt

Aaron, I am getting an error: "No such file or directory at 5MinInterval2.pl line 11" Line 11 contains:

open my $in, '<', $input or die $!;

Any ideas as to why?

Replies are listed 'Best First'.
Re^3: How to pass a file to GetOpt
by Anonymous Monk on Jul 10, 2012 at 23:46 UTC

    Hi,

    Change

    open my $in, '<', $input or die $!; to open my $in, '<', $input or die "$! - [$input]";

    to see what you are actually trying to open.

    J.C.

      No such file or directory - [C:\Users\Mruppe2\workspace\Perl] at 5MinI +nterval2.pl line 11.

      The actual file path is longer than that. The error_log is actually just a file, I don't believe that it has an extension.

      perl 5MinInterval2.pl -input C:\Users\Mruppe2\workspace\Perl 5 Essen +tial Training\MPMStats Project\error_log -output C:\temp\output9.csv

        You'll need to quote pathnames with embedded spaces:

        perl 5MinInterval2.pl -input "C:\Users\Mruppe2\workspace\Perl 5 Essent +ial Training\MPMStats Project\error_log" -output C:\temp\output9.csv

        -- Ken

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2023-09-21 08:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?