[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Perl - Debian- Programacao text-menu



On Wed, 20 Jun 2001, Denf wrote:

>     Sera que alguem sabe se em Perl existe uma chamada pra executar
> comandos do sistema, assim como
> em c existe o system();, algo parecido em perl alguem conhece.

perl tem exatamente a mesma função:
----------------------------------
       system LIST

       system PROGRAM LIST
               Does exactly the same thing as `exec LIST', except
               that a fork is done first, and the parent process
               waits for the child process to complete.  Note
               that argument processing varies depending on the
               number of arguments.  If there is more than one
               argument in LIST, or if LIST is an array with more
               ...


este trecho é do perlfunc (~$ perldoc perlfunc)


>    Tambem se alguem conhece um biblioteca parecida com a ncurses para
> criar menus em modo shell, ou um
> programa como o dialog pra shell

existe um módulo Curses para o Perl (vá em search.cpan.org);

[]s,
Mario O.de Menezes            "Many are the plans in a man's heart, but
    IPEN-CNEN/SP                 is the Lord's purpose that prevails"
http://curiango.ipen.br/~mario                 Prov. 19.21



Reply to: