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

Re: Correct way to use system()?

by gwadej (Chaplain)
on Aug 13, 2009 at 17:13 UTC ( #788386=note: print w/replies, xml ) Need Help??

in reply to Correct way to use system()?

You're problem has nothing to do with system. The problem is in these lines.

my $dir = @dirs_sunflarebeam; #print "$dirs\n"; system("getfacl", "$dir");

$dir contains the count of the items in @dirs_sunflarebeam, not the first item. The call to getfacl can't find a file named 1. You probably meant my $dir = $dirs_sunflare_beam[0];

One minor nit: You don't need the quotes around $dir in the last statement. They really have no effect.

Update: formatting correction.

G. Wade

Replies are listed 'Best First'.
Re^2: Correct way to use system()?
by xjlittle (Beadle) on Aug 13, 2009 at 17:40 UTC
    I found it. I had an array # that I didn't want. Thanks for your help. I remove the "" as well.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://788386]
[1nickt]: stevieb it's just a simple web page with a POST form. You can set the attribute so when the user's browser opens a file manager to select a file to upload, it will only show those o f the type you want to get.
[1nickt]: Question for my learned friends: is there a word meaning "CSV-like" i.e. I want to say that I accept CSV files, but the separator doesn;t have to be a comma. Or is that implicit these days?
[chacham]: dsv
[chacham]: dsv

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2017-07-22 18:53 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (340 votes). Check out past polls.