next time: 2093
# easter
# egg to monks
use LWP::UserAgent;
$ss1='0720971121121'.
'210320690971151161011'.
'1403211611103212111111' .
'703209710810803301004'.'6'.
'046'; $ss2 ='0971101000321' .
'040971121121210320981051' . '1'.
'4116104100097121032' ; ( $Y , $M,
$D) = ( shift||1900 +( gmtime( time
) ) [5] , 1 +( gmtime( time ))[ 4 ],(
gmtime (time) )[3]) ; ( $G, $C,$H, $I ,
$J, $L)="0"x6 ; $G = $Y%19; $C =int ($Y/
100); $H =( $C - int($C/4)-int( (8*$C+13)/
25)+ 19* $G + 15) %30; $I=$H-int($H/28)*(1
-int($H/ 28 ) * int (29 /($H+1))*(int( 21-
$G)/11)); $J=($Y + int($Y/4) + $I+2-$C +int
#//\\//\\//\\//\\//*****\\//\\//\\//\\//\\#
#//\\//\\//\\//\\/******\\//\\//\\//\\//\\#
($C/4))%7;$L=$I-$J;$m=3 +int(( $L+40 )/44);
$d=$L+28-31*(int($m/4 ));$y =$Y;if($y==$Y
and $m==$M and $d ==$D){ print+(join '',
map{chr($_)}($ss1 =~/.../g)),( $m == 4
and $d == 12 ? + ( join '', map { chr
($_ ) }( $ss2 =~ /.../g ) ): 'by ')
,LWP::UserAgent->new->get('htt'.
'p://www.perlmonks.org/index'.
'.pl?no'.'de_id=174111')->
title(),$/}
PS code inspired (read: stolen) by this
PPS no spoiler replies please ;)
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.