Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: inserting HTML file in a PERL script

by wfsp (Abbot)
on May 29, 2005 at 11:43 UTC ( [id://461494]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $name = 'John';
    my $html = get_html(); # sub name corrected
    ...
    HTML
    return $html;
    }
    
  2. or download this
    <p>Hi there <!-- name --></p>
    
  3. or download this
    my $html = get_html();
    $html =~ s/<!-- name -->/$name/;
    
  4. or download this
    my $html;
    {
    ...
      close $fh
        or die "cannot close $file: $!";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-24 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found