Making all weird regexp-delimiters to /, you get:s ss\sgi;sgi;y ygsyajy if m msgi;m ;y ji;jphj;print
Adding some additional clarification, you get:s//sgi;/sgi; /y/gs/aj/ if m/sgi;; y/i;/ph/; print
$_ =~ s//sgi;/sgi; # $_ is now 'sgi;' if($_ =~ /sgi;/){ $_ =~ tr/gs/aj; # 'jai;' } tr/i;/ph/; # 'japh' print $_; # Voila!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Random keyboard input. Almost.
by blakem (Monsignor) on Aug 26, 2001 at 16:45 UTC | |
|
Re: Random keyboard input. Almost.
by Chady (Priest) on Aug 26, 2001 at 23:52 UTC | |
by Anonymous Monk on Aug 27, 2001 at 01:05 UTC |