in reply to Impress your children with Perl

marto, tinyurl has been around for 22 years and their short links do not expire. Anyway, behold The Game of Life:
perl -MHTTP::Tiny -e 'eval HTTP::Tiny->new->get(shift)->{content}' htt +ps://www.perlmonks.com/index.pl?displaytype=displaycode;abspart=1;nod +e_id=574225;part=1

Replies are listed 'Best First'.
Re^2: Impress your children with Perl
by choroba (Cardinal) on May 21, 2024 at 19:17 UTC
    zsh: no matches found: https://www.perlmonks.com/index.pl?displaytype= +displaycode

    I'm not sure this would impress my children. Maybe because we're not in the US?

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
      > zsh: no matches found

      I don't know why that would happen because when pasted into my zsh on macos all these slashes magically appear:

      perl -MHTTP::Tiny -e 'eval HTTP::Tiny->new->get(shift)->{content}' htt +ps://www.perlmonks.com/index.pl\?displaytype\=displaycode\;abspart\=1 +\;node_id\=574225\;part\=1
        That's impressed me!

        I'm connecting to a Mac at work through ssh in a Linux terminal which doesn't add any backslashes.

        map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
Re^2: Impress your children with Perl
by marto (Cardinal) on May 22, 2024 at 16:40 UTC