Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^5: System() in list mode?

by zentara (Archbishop)
on Oct 18, 2011 at 12:59 UTC ( #932144=note: print w/replies, xml ) Need Help??


in reply to Re^4: System() in list mode?
in thread System() in list mode?

Put single quotes around the path.

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^6: System() in list mode?
by 1337John (Initiate) on Oct 18, 2011 at 14:36 UTC
    ...... Hm I'm not sure but if you could give me an example, then maybe it'll make more sense.
      You sound like a troll, but just in case you are in earnest
      system ('tar', '-zcvf', 'my_tarball.tgz', '/mypath with spaces/dir' );

      I'm not really a human, but I play one on earth.
      Old Perl Programmer Haiku ................... flash japh
        What if your path had an apostrophe (single-quote) in it, in addition to a space, and that path was stored in a variable (i.e. not hard-coded)?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://932144]
help
Chatterbox?
[1nickt]: folks, would you say that 1.0 is an integer ?
[Lady_Aleena]: 1nickt, I wouldn't, but I'm not normal.
LanX aggrees, LA isn't normal ;-P
[Lady_Aleena]: LanX, thanks bunches.
[Lady_Aleena]: Rigth now I'm ranting in my head about an old subject.
[1nickt]: Hm, that is, how to prevent Perl from turning 1.0 into 1? I feel sure this must be an faq, but am reading perlnum and not finding the answer ...
[Lady_Aleena]: 1nickt, why does it matter in this case?
[1nickt]: Hm, perhaps this? "Operators which expect an integer force the argument into the integer format."
[1nickt]: Can this be? So print
[1nickt]: ... "expects an integer" ?

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2017-05-24 18:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?