Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 having an uproarious good time at the Monastery: (8)
As of 2014-12-28 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (178 votes), past polls