On 11/3/07, AndrewMcHorney <[EMAIL PROTECTED]> wrote:

> Right now my code reads :
>
> @file_list = `cd c:\;dir c:/s`;

I think that's your problem: If you were to print that same string
you've got in backticks...

  print "The command is: " . "cd c:\;dir c:/s" . "\n";

...you would see that you're not asking for what (I think) you thought:

  The command is: cd c:;dir c:/s

The backslash is always a magical character in Perl. Whenever you mean
a real backslash, you have to type it twice. In this case, you got the
"backslash-semicolon character", and since a backslashed punctuation
mark is just the mark itself, that's just a semicolon. But no
backslash.

Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to