Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Regex On Your Tombstone?

by cavac (Parson)
on May 28, 2021 at 15:50 UTC ( [id://11133225]=note: print w/replies, xml ) Need Help??


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";'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-03-29 01:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found