http://www.perlmonks.org?node_id=503295


in reply to Re: What would you put on a Perl mug?
in thread What would you put on a Perl mug?

There's always: $mug =~ s/^$/coffee/; ;-) Although it would be more like: $mug =~ s/^$/tea/ for me, personally ;-)

Replies are listed 'Best First'.
Re^3: What would you put on a Perl mug?
by Perl Mouse (Chaplain) on Oct 27, 2005 at 11:08 UTC
    Hmmm, that would mean if there's a bit of cold coffee from yesterday, you're stuck - you aren't getting fresh coffee.
    $mug =~ s/.*/coffee/s, sleep(1500 + rand 600) while 1;
    Or maybe:
    $mug =~ s/.*/beer/s, sleep(1500 + rand 600) while 1;
    Perl --((8:>*
      I guess I don't like stale coffee in my mug.
      foreach (@days) { my $mug = 'coffee'; # rest of the day }
      would be a more desirable description. ;-)