Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Anonymous
Anonymous asked in 電腦與網際網路程式設計 · 1 decade ago

ActivePerl System call

請問ActivePerl有辦法執行System call(在命令列底下執行命令)嗎?

如果不行的話,有沒有其他可執行System call的Perl可以安裝的?

還是說有其他的方法?

麻煩各位為我解題ˊˋ

謝謝

Update:

我要執行的是dos命令

請問有方法嗎?

1 Answer

Rating
  • eric
    Lv 4
    1 decade ago
    Favorite Answer

    你是要執行dos命令還是unix命令?如果是後者,我建議安裝unix.

    Unix & perl 快速安裝法:

    首先, 安裝 virtualbox (http://www.virtualbox.org/wiki/Downloads)

    下載 freenas iso (http://www.freenas.org)/

    安裝 freenas virtual machine

    安裝完freenas後,打 pkg_add -r vim (安裝vim和perl)

    2009-09-03 02:08:25 補充:

    Syntax (calling dos command)

    1. system("you_command");

    2. `your_command`;

    For example,

    system("dir");

    or,

    my $cmd = `dir`;

    print $cmd;

    Source(s): , self
Still have questions? Get your answers by asking now.