Sapete dove posso scaricare quel programma che serve per rendere eseguibile uno script in perl? Magari se c'è per linux?
Grazie
jonni125 ha scritto:Sapete dove posso scaricare quel programma che serve per rendere eseguibile uno script in perl? Magari se c'è per linux?
Grazie
jonni125 ha scritto:si ma come lo uso tipo mettiam che il file si chiama abc.pl ed è nella home come lo dovrei usare questo comando per far funzionare lo script in perl?
man perl
perl nomefile
$url = "http://".$page;
$html = get($url);
open FILE ,">>" ,"Page.txt";
print FILE $html;
close FILE;
$fw->Label(-text=>"OK, Download Complete",-background=>"gray",-foreground=>"black")->pack(-anchor=>"n");
}}->pack(-anchor=>"s");
MainLoop;
jonni125 ha scritto:Ma qui mi da un errore alla linea 7 mi potete dire come lo correggo per favore?
- Codice: Seleziona tutto
$url = "http://".$page;
$html = get($url);
open FILE ,">>" ,"Page.txt";
print FILE $html;
close FILE;
$fw->Label(-text=>"OK, Download Complete",-background=>"gray",-foreground=>"black")->pack(-anchor=>"n");
}}->pack(-anchor=>"s");
MainLoop;
#!/usr/bin/perl
use Tk;
use LWP::Simple;
$main=MainWindow->new();
$main->minsize(300,100);
$main->maxsize(500,300);
$main->title("...:: Web Page Download Source ::...");
$main->configure(-background=>'grey');
$top=$main->Frame(-background=>'grey')->pack(-side=>'top', -fill=>'x');
$left1=$top->Frame(-background=>'grey')->pack(-side=>'left', -pady=>9, -padx=>8);
$t1=$left1->Label(-text=>'Example:
http://www.google.com',
-background=>'grey')->pack();
$left2=$top->Frame(-background=>'grey')->pack(-side=>'left', -pady=>2, -padx=>15);
$url1=$left2->Label(-text=>'URL',
-background=>'grey')->pack(-anchor=>"n");
$url2=$left2->Entry(-textvariable=>\$url,
-background=>"light grey",
-foreground=>"red",
)->pack();
$right1=$top->Frame(-background=>'grey')->pack(-side=>'left', -pady=>9, -padx=>8);
$t2=$right1->Label(-text=>'File Name', -background=>'grey')->pack();
$t2=$right1->Label(-text=>'File Format', -background=>'grey')->pack();
$right2=$top->Frame(-background=>'grey')->pack(-side=>'right', -pady=>2, -padx=>15);
$t3=$right2->Label(-text=>'File', -background=>'grey')->pack();
$file1=$right2->Entry(-textvariable=>\$file_name)
->pack(-anchor=>"n");
$file2=$right2->Entry(-textvariable=>\$file_format)
->pack(-anchor=>"n");
$button=$main->Button(-text=>"Download",
-background=>"grey",
-foreground=>"black",
-activebackground=>"light grey",
-activeforeground=>"red",
-command=>sub{
$source_html = get($url);
open FILE ,">>" ,"$file_name.$file_format";
print FILE $source_html;
close FILE;
}
)->pack();
MainLoop;
Visitano il forum: Nessuno e 2 ospiti
megalab.it: testata telematica quotidiana registrata al Tribunale di Cosenza n. 22/09 del 13.08.2009, editore Master New Media S.r.l.; © Copyright 2008 Master New Media S.r.l. a socio unico - P.I. 02947530784. GRUPPO EDIZIONI MASTER Spa Tutti i diritti sono riservati. Per la pubblicità: Master Advertising