in reply to Re: Impress your children with Perl
in thread Impress your children with Perl

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]

Replies are listed 'Best First'.
Re^3: Impress your children with Perl
by Anonymous Monk on May 21, 2024 at 19:26 UTC
    > 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]
        > That's impressed me!

        🌝

        > I'm connecting to a Mac at work through ssh in a Linux terminal...

        Nice edge case! It's always something. Quoting the url works too.

        > Maybe because we're not in the US?

        Sorry I meant to say that, at current numbers, Apple is adding about 24 million Macs with 48 million copies of Perl to the world each year. That's a lot of Perl and it's only 4 clicks away from the desktop! One good Perl-centric application could bring it front and center.