in reply to Stylish Tk clock -- oneliner

Sorry too, I could not resist

perl -MTk -e '$w=tkinit;$w->optionAdd("*font","{DejaVu Sans Mono} 20 b +old");$w->Label(-textvariable=>\$n,-background=>"#f0fff0")->pack;$w-> +repeat(100,sub{$n=scalar localtime time});MainLoop'

Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^2: Stylish Tk clock -- oneliner
by hippo (Archbishop) on May 12, 2021 at 13:38 UTC
    I prefer Linux/Unix quotation

    If you would both use q{} inside the Perl code then the users of the other O/S only need to change the outer quotes (the shell quotes). Just saying ;-)


    🦛

Re^2: Stylish Tk clock -- oneliner
by bliako (Abbot) on May 12, 2021 at 13:41 UTC
    Courier is never stylish

    I beg to differ: courier is the epitomy of style