Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: stuck on newb problem

by toolic (Bishop)
on Apr 28, 2012 at 01:25 UTC ( [id://967756]=note: print w/replies, xml ) Need Help??


in reply to stuck on newb problem

sort the characters of each, then compare with eq:
use warnings; use strict; my $s = 'hello'; my $x = join '', sort split //, $s; print "$x\n"; __END__ ehllo

Replies are listed 'Best First'.
Re^2: stuck on newb problem
by sweepy838 (Acolyte) on Apr 28, 2012 at 01:34 UTC
    ahh thank you :D such simple solution cant believe i never thought of that :o jeez

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2024-04-20 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found