[Vienna-pm] Verlinken 2er perl programme

Thomas Klausner domm at zsi.at
Tue Feb 15 04:26:27 PST 2005


Hi!

On Tue, Feb 15, 2005 at 02:37:56PM +0100, e_horn at fh-bingen.de wrote:

> Vielleicht kann mir jemand weiter helfen!
> Kann ich innerhalb eines Perl Programmes Anker zu andren Perlprogrammen legen?
> Ich moechte einen link haben der nach Klick das Programm search2.pl auf ruft!
> Geht das mit einem a href??

ja

Oder, wenn das kein Overkill ist, schau dir mal CGI::Application an:
http://search.cpan.org/~markstos/CGI-Application-3.31/lib/CGI/Application.pm

> 	print "<html>";
> 	print "<title>database Search</title>";
>  	print "<head></head>";
> 	print "<body bgcolor=\"white\">";
> 	print "<h3>Suche:$suchtext</h3>";
> 	print "<a href=/cgi-bin/"search2.pl">link</a>"; 

das wuerde ich aber eher so machen (wenn schon ohne Template::Toolkit o.ae.):

print <<EOHTML
<html>
<head>
<title>database Search</title>
</head>
<body>
<h3>Suche: $suchtext</h3>
<a href="/cgi-bin/search2.pl">link</a>

EOTHML

-- 
#!/usr/bin/perl                               http://domm.zsi.at
for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}


More information about the Vienna-pm mailing list