Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
rot13 in perl
#4
(12-12-2009, 06:56 AM)0x80483fb Wrote: I picked this up, while checking out POE::Component::IRC Cookbook.
Code:
$rot13 =~ tr[a-zA-Z][n-za-mN-ZA-M];

Source: http://poe.perl.org/?POE_Cookbook/IRC_Bots

Yeah, but that way's no fun. And you can get rid of the capitals if you supply the 'i' modifier.
Reply


Messages In This Thread
rot13 in perl - by wat - 12-06-2009, 07:42 PM
RE: rot13 in perl - by Socrates - 12-08-2009, 09:43 PM
RE: rot13 in perl - by 0x80483fb - 12-12-2009, 06:56 AM
RE: rot13 in perl - by wat - 12-12-2009, 12:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Compile Error in Perl liveproject101 0 1,303 04-12-2013, 03:08 AM
Last Post: liveproject101
  [Perl] IRC Bot wchar_t 26 14,620 08-20-2012, 01:40 PM
Last Post: Trump
  Perl Ebook ven0m 2 1,833 05-04-2012, 08:14 AM
Last Post: ven0m
  Help with a program written in perl Rodman42866 1 1,688 03-09-2012, 03:16 AM
Last Post: AceInfinity
  HTML perl script AceInfinity 5 2,741 12-03-2011, 11:35 PM
Last Post: Closed Account

Forum Jump:


Users browsing this thread: 1 Guest(s)