in reply to Re: Re: why the 2nd program doesn't work?
in thread why the 2nd program doesn't work?
You are comparing
withchomp($x=<STDIN>)
The value of chomp is most probably "1" or "2". The value of $y is the reverse of $x$y=reverse($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
|
|---|