> First, always check the result of IO operations. If something fails, > these return a PerlUndef, so: > .sub _main > fdopen $P1, 0, "r" # STDIN > defined $I0, $P1
*Doh* Stupid Newbie Error. > unless $I0, err > read $S0, $P1, 255 > print $S0 > end > err: > print "fdopen failed\n" > end > .end > > 2. C<fdopen> was disabled totally due to a wrong #ifdef > 3. its currently only defined for PIO_OS_UNIX Okaaay, so the plan is for this to work and I should probably code this way anyway, right?