Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Template with optional PHP execution

by Flame (Deacon)
on Sep 01, 2001 at 19:21 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: perltutorial [id://109641]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-16 16:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found