in reply to Windows: system("type ...") vs. system("cmd /c type ...")

Try this:
perl -e "system(q(type myfile.txt))"

You could visit here to learn more.

UPDATE:

perldoc -f system
is also helpful.
Sorry, I made a mistake.

I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

Replies are listed 'Best First'.
Re^2: Windows: system("type ...") vs. system("cmd /c type ...")
by BrowserUk (Patriarch) on Nov 18, 2008 at 07:59 UTC

    Are you saying that perl -e "system(q(type myfile.txt))"

    is somehow different to perl -e "system('type myfile.txt')"?

    I tried following your link to see if it clarified things, but it seemed to just be an essentially random page on the AS website with nothing that clarified what point you were trying to make?


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.