in reply to Re: why the 2nd program doesn't work?
in thread why the 2nd program doesn't work?

So what do you say. There is a error in syntax. I mean I am clueless about it. My C function funda says, it should work. Thanx for reply.
cheers Rock
  • Comment on Re: Re: why the 2nd program doesn't work?

Replies are listed 'Best First'.
Re: Re: Re: why the 2nd program doesn't work?
by matija (Priest) on Apr 21, 2004 at 05:45 UTC
    No, it is an error in thinking.

    You are comparing

    chomp($x=<STDIN>)
    with
    $y=reverse($x)
    The value of chomp is most probably "1" or "2". The value of $y is the reverse of $x

    Your "C function funda" most certainly doesn't say that the return of $chomp function must be equal to it's argument.

    Hint:You can get information on perlfunctions by reading perldoc perlfunc, or if you're looking for a specific function, by doing perldoc -f functionname