Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: improving the aesthetics of perl code

by BrentDax (Hermit)
on Jan 24, 2005 at 04:56 UTC ( [id://424539]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re^2: improving the aesthetics of perl code
in thread improving the aesthetics of perl code

print "<tt>­\n"; print "\n<c­enter­><h3>­MSHIP - my statu­s of host IP's<­/h3><­/ +cent­er>\n­"; my $now=­strft­ime "%m/%­d/%Y %H:%M­:%S", (loca­ltime­); print "<cen­ter>$­now</­cente­r>\n"­; print hr;

Personally, I'd probably use a heredoc for this:

my $now=strftime "%m/%d/%Y %H:%M:%S", localtime; print <<"END"; <tt><center><h3>­MSHIP - my statu­s of host IPs</h3></center> <center>$now</center> <hr /> END

Of course, I wouldn't write HTML like that, but continuing in that direction will only send me way off-topic...

=cut
--Brent Dax
There is no sig.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://424539]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.