Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Help with my crap

by Anonymous Monk
on Sep 14, 2019 at 00:26 UTC ( [id://11106148]=note: print w/replies, xml ) Need Help??


in reply to Re: Help with my crap
in thread Help with my crap


Remember that September?
perl -MDate::Calc=:all -e'$|++;while(){$x=1993;$t=time;($y,$m,$d)=Loca +ltime($t);$dd=Delta_Days($x,9,1,$y,$m,$d);$_=localtime$t;s/^(\S+\s\S+ +\s)\S+(\s\S+\s)\S+$/$1$dd$2$x/;print"\r$_\t";sleep 1}'

Replies are listed 'Best First'.
Re^3: Help with my crap
by cavac (Parson) on Oct 18, 2019 at 09:03 UTC

    Woops. That reminded me to release my eternalseptemberize() function as an Acme module. I was wanting to do that for a long time and i always forgot. Acme::September::Eternal coming to CPAN in the next few hours (currently in PAUSE processing).

    perl -e 'use MIME::Base64; print decode_base64("4pmsIE5ldmVyIGdvbm5hIGdpdmUgeW91IHVwCiAgTmV2ZXIgZ29ubmEgbGV0IHlvdSBkb3duLi4uIOKZqwo=");'

      I'm Canadian, so for us folk, it would be preferred if it was eternaldecemberize() where there's a single month of warm weather (August), and the rest December :)

        Sounds interesting. So the module would output "nth August" during august. But then start with "1st December" on 1st of September, going all the way round to end of July to "334th of December" (or 335 on leap years)?

        If you can confirm, i'll work out the math and release a version for our Canadian supporters ;-)

        perl -e 'use MIME::Base64; print decode_base64("4pmsIE5ldmVyIGdvbm5hIGdpdmUgeW91IHVwCiAgTmV2ZXIgZ29ubmEgbGV0IHlvdSBkb3duLi4uIOKZqwo=");'
Re^3: Help with my crap
by Anonymous Monk on Sep 15, 2019 at 20:03 UTC
    Hopefully this one won't break at the end of the month:
    perl -MDate::Calc=:all -e'$|++;while(){$x=1993;$t=time;($y,$m,$d)=Loca +ltime($t);$dd=Delta_Days($x,9,1,$y,$m,$d);$_=localtime$t;s/^(\S+\s)\S ++\s\S+(\s\S+\s)\S+$/${1}Sep $dd$2$x/;print"\r$_\t";sleep 1}'
Re^3: Help with my crap
by Anonymous Monk on Sep 14, 2019 at 20:17 UTC
      Line_Mode_Browser

      I remember being too busy with popular protocols (like email, usenet, telnet, gopher, finger, ftp, irc) to bother with the (experimental, at best, hypercard clone) www before the invention of a decent browser (lynx).

Log In?
Username:
Password:

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

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

    No recent polls found