in reply to Regex On Your Tombstone?

s/cavac//g

Edit: Really a shame that the "e" modifier expects an expression, otherwise i could have used s/cavac//gone. Oh well...

perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'

Replies are listed 'Best First'.
Re^2: Regex On Your Tombstone?
by LanX (Saint) on May 28, 2021 at 19:09 UTC
    > i could have used s/cavac//gone . Oh well...

    heh! =)

    I tried RIP but the /r is nondestructive and will keep you alive... ;(

    DB<15> $_="cavac" DB<16> s/cavac//rip DB<17> p cavac

    update

    FWIW: I checked for synonyms for "dead", but since "e" is the most common letter in Ænglish ...

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

      Hmm, the alternative would be to make the whole thing Terry Pratchett style and make sure the name is bounced around in the protocol overhead forever.

      s/(cavac)/"GNU $1"/

      I actually do something like this in my Net-Clacks IPC for a couple of people.

      perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'

      As one author (can't remember who) once said: "Heroes don't die, they just fade away".

      perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'