Posted on 2006-11-02 10:40:00-08 by berislav
Printing shuffled string
Hello Jerry, First of all, my apologies for bothering you with this newbie question regarding MRMA module. How exactly can I get the shuffled string to print nicely on screen? I have written the following code:
print "Enter string: "; $string=<STDIN>; chomp $string; $string_shuffled=shuffle($string); print "\nOriginal: ", $string; print "\n\nShuffled: ", $string_shuffled, "\n"; exit;
And the output I get isn't reshuffled string, but something like ARRAY(0x88982fc) Thanks very much in advance! Berislav
Direct Responses: 3413 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.