Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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
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 lurking in the Monastery: (16)
As of 2014-07-11 17:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (232 votes), past polls