Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^3: Palindrome array

by 2teez (Priest)
on Dec 29, 2012 at 18:33 UTC ( #1010840=note: print w/replies, xml ) Need Help??

in reply to Re^2: Palindrome array
in thread Palindrome array

Hi LanX,

> if (@array eq (reverse scalar @array)){..
"..Sorry I can't let this stand uncorrected!.."
There is really no need to be sorry, because your assertions and "tests" are so correct and right I.

However, I believe Athanasius first caught the message I was trying to pass to the OP, in this line
..The string comparison operator eq puts its operands into scalar context..

++ LanX

I -> Updated.

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Replies are listed 'Best First'.
Re^4: Palindrome array
by AnomalousMonk (Canon) on Dec 29, 2012 at 20:18 UTC

    I must say I agree with the sentiment expressed by LanX: tossing a beginner a lit firecracker and saying "Does this help?" doesn't really help. I sympathize with your desire to show a pathway to an answer rather than just saying the answer, but that one was just a bit too obscure!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010840]
[stevieb]: ...on request. There's some supporting work I need to do, as well as update the docs, but it's in the v1.12 branch if anyone wants to play with it...
[stevieb]: ...issue 62 will track what else needs to be done.

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2017-03-31 01:34 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (364 votes). Check out past polls.