Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • \$\begingroup\$ of course you can save 4 chars in the program by removing the " around true and false, since without using strict/warnings a bareword is a string. \$\endgroup\$ Commented Sep 17, 2011 at 17:30
  • \$\begingroup\$ Thanks! \$\endgroup\$ Commented Sep 17, 2011 at 20:21
  • \$\begingroup\$ I prefer this as ($c,$d)=map{[sort split//]}@ARGV;exit("@$c"ne"@$d") (51 chars) so it can take command line arguments and use the command line exit codes. It'd be 48 chars retaining <> with a multi-line input. \$\endgroup\$ Commented Aug 15, 2015 at 11:41