Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: space in filepath and in filename for system function

by anniyan (Monk)
on Aug 04, 2005 at 10:24 UTC ( #480758=note: print w/ replies, xml ) Need Help??


in reply to Re: space in filepath and in filename for system function
in thread space in filepath and in filename for system function

Thanks for your reply.

I have stored that path in a variable $file.

It is passing the variable name itself as a argument.

system ('adrl.exe', '$file') || die ("not correct path");

Regards,
Anniyan
(CREATED in HELL by DEVIL to s|EVILS|GOODS|g in WORLD)


Comment on Re^2: space in filepath and in filename for system function
Download Code
Replies are listed 'Best First'.
Re^3: space in filepath and in filename for system function
by davorg (Chancellor) on Aug 04, 2005 at 10:29 UTC

    Well yes. It would. If you put it in a single-quoted string. Variables aren't expanded in single-quoted strings. You need a double-quoted string. Or, actually, you don't need any quotes at all.

    system ('adrl.exe', $file) || die ("not correct path");
    --
    <http://www.dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2015-07-31 11:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (276 votes), past polls