Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Building multiline qx// shell commands

by Trizor (Pilgrim)
on Jul 15, 2007 at 02:15 UTC ( [id://626678]=note: print w/replies, xml ) Need Help??


in reply to Building multiline qx// shell commands

Perl doesn't have something like that, but most shells allow you to escape a newline with a \ like this:

qx/a_cmd -with a -lot of -arguments that \ -spill over_eighty characters/;

Replies are listed 'Best First'.
Re^2: Building multiline qx// shell commands
by kingkongrevenge (Scribe) on Jul 15, 2007 at 03:11 UTC
    Yeah, I'm a moron. That works fine.
    print `ls \\ /etc/fstab`;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2024-03-28 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found