If you want to know if /tmp.txt has data in it use:
$qfile = "c:/tmp.txt"; if (-s $qfile) # man perlfunc has more -s = if exist with size > 0 { open QINPUT... }
"Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce
In reply to Re: WHILE and DEFINED problem
by kutsu
in thread WHILE and DEFINED problem
by eldinkim
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |