Muti weKisimusi wemhuka: tora Krisimasi kune yako Linux koni

krisimasi muti linux koni

Kisimusi iri kuuya uye nayo vanga vachida kutiunzira iyi yakapusa Perl chirongwa chinogona kushongedza yako Linux terminal. Zvino unogona kuunza Kisimusi kune yako koni pamwe neino Kisimusi muti hupenyu hwatinogona kuona muLinux console. Kunyangwe kukosha kwayo kuri kwechokwadi, kuchiri kuda kuziva uye kune avo vanofarira kuyedza apa ini ndinotsanangura maitiro ekuzviita nhanho nhanho.

Ndinokutendai cyberciti.biz uye Vivek Gite yekodhi iyi, kuti muione, munofanira kuva yakaiswa Perl pane yedu system, kana iwe uchitova nayo, tinogona kuisa Acme :: POE :: Muti. Kuti tiite izvi, isu tinoshandisa iyo CPAN (Inonzwisisika Perl Archive Network) module uye ndokutanga neropafadzo, tinonyora yakapusa yekuraira mutsara.

perl -MCPAN -e 'install Acme::POE::Tree'

Kana tangova neizvi, tinogona ona muti wekisimusi mugoko nemirairo yakapusa:

perl -MAcme::POE::Tree -e 'Acme::POE::Tree->new()->run()'

Kana izvo zvaunoda iwe kuita izvi muti, unogona kugadzirisa kodhi yekodhi yePerl script uye woichengeta mune faira faira (semuenzaniso: christmas.pl) nezviri mukati:

#!/usr/bin/perl

use Acme::POE::Tree;

my $tree = Acme::POE::Tree->new(

{

star_delay =>1.5, #brillo durante 1.5segundos

light_delay => 2, #Centelleo de las luces por 2 segundos

run_for => 10, #Salir automáticamente tras 10 segundos de muestra

}

);

$tree->run();


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Makomendi gumi, siya zvako

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako

  1.   Matiyasi akadaro

    Tiri mugore ripi? gumi nemapfumbamwe nemapfumbamwe nemashanu? hahaha ndosaka linux isingazombove yakadai sevanhu.

    1.    Victor akadaro

      que ?? Ini ndichakuudza kana iwe usingazive, iyo terminal yakakosha, kuda kuita iyi mhando yeidudziro sekuvaraidza kuri kukuvaraidza, kunyange kwauri kuri kupusa, kutaura kwako hakuna zvakunoreva;)

      Kwaziso.

  2.   Jimmy orano akadaro

    KUNYANYA iyo CPAN: «ngatirege kudzoreredza vhiri».

    Ndine perl 5 yakaiswa uye haimhanye nekuda kwekushayikwa "Curses.pm", kutsamira kwainowana kunyange ndakamhanya CPAN ndikaigadzirisa negirazi repedyo pakarepo.

    HAIMISI KUFARA chinhu chinoratidzika kunge chakapusa "uye kunyangwe anachronistic inogona kutidzidzisa zvidzidzo zvinonakidza, pachezvangu kwandiri perl ndeumwe mutauro" unoshamisa "asi ini handina kuziva kuti vane chimwe chinhu" centralized "pamapurogiramu avo.

bool (chokwadi)