Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: one liner error

by Athanasius (Archbishop)
on May 27, 2020 at 06:21 UTC ( [id://11117318]=note: print w/replies, xml ) Need Help??


in reply to one liner error

Hello toohoo,

For one-liners, you have to quote the script; on Windows, that means double quotes (single quotes on *nix):

perl -e "use Cwd; print getcwd();"

Note that you can also specify a module via the -M flag:

perl -MCwd -e "print getcwd();"

See perlrun.

Hope that helps,

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

Replies are listed 'Best First'.
Re^2: one liner error
by toohoo (Beadle) on May 28, 2020 at 05:41 UTC

    Hello Athanasius

    Thank you very much, this solved my issue.

    Have a nice day

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-28 16:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found