Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Template with optional PHP execution

by Flame (Deacon)
on Sep 01, 2001 at 19:21 UTC ( #109641=perltutorial: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    <HTML>
       <HEAD>
          <TITLE>MyCode</TITLE>
    ...
          <A HREF="mypage.cgi">Go to My Page!</A>
       </BODY>
    </HTML>
    
  2. or download this
    <HTML>
       <HEAD>
          <TITLE>MySite: $title</TITLE>
    ...
          <A HREF="mypage.cgi">Go to My Page!</A>
       </BODY>
    </HTML>
    
  3. or download this
    <HTML>
       <HEAD>
          <TITLE>MySite: $title</TITLE>
    ...
          <A HREF="$pagelink">Go to My Page!</A>
       </BODY>
    </HTML>
    
  4. or download this
    <HTML>
       <HEAD>
          <TITLE>MySite: $title</TITLE>
    ...
          <BR>
       </BODY>
    </HTML>
    
  5. or download this
    #Sub utemplate (use template)  Call only when ready to print.
    sub utemplate {                                
    ...
    }
    
    1;
    
  6. or download this
    #!/usr/bin/perl
    
    use CGI qw(:standard ); #Handy for printing header
    ...
    $copyright = "(C) 2001 MyCompany";
    
    &utemplate;
    
  7. or download this
    use LWP::Simple;
    
    ...
    }
    
    1;
    
  8. or download this
    #!/usr/bin/perl
    
    use strict;
    ...
    
    #Continue with everything else you had to do
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perltutorial [id://109641]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2015-07-28 01:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (251 votes), past polls