Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 surveying the Monastery: (5)
As of 2014-07-24 04:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (157 votes), past polls