John Fisher wrote:
>
> What am I doing wrong? Here are 3 attempts at trying to use getchar.
> It seems I am following the Usage, but I guess not.
>
>
> $ perl -e 'use POSIX;$ab="10";$pab=POSIX::getchar($ab);print $ab,"\n",$pab;'
> Usage: POSIX::ge
On Friday, September 12, 2003, at 07:18 AM, JOHN FISHER wrote:
What am I doing wrong? Here are 3 attempts at trying to use getchar.
It seems I am following the Usage, but I guess not.
POSIX's getchar() doesn't take any arguments. It pulls from STDIN
automatically. Hope that helps.
James
--
What am I doing wrong? Here are 3 attempts at trying to use getchar. It seems I am
following the Usage, but I guess not.
$ perl -e 'use POSIX;$ab="10";$pab=POSIX::getchar($ab);print $ab,"\n",$pab;'
Usage: POSIX::getchar() at -e line 1
$ perl -e 'use POSIX