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

Re^2: Please help

by Not_a_Number (Prior)
on Mar 27, 2012 at 19:41 UTC ( #962003=note: print w/replies, xml ) Need Help??


in reply to Re: Please help
in thread Please help

Your code is broken:

D:\progs\perl>palindrome.pl Enter a word... noon PALINDROME D:\progs\perl>palindrome.pl Enter a word... ipswich PALINDROME D:\progs\perl>palindrome.pl Enter a word... bolton PALINDROME

The line

    unshift @userinput, chop $user;

needs to be changed to

    push @userinput, chop $user;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://962003]
help
Chatterbox?
What's the matter? Cat got your tongue?...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2017-10-21 15:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (270 votes). Check out past polls.

    Notices?