$ perl -e ' $entry = "willy"; (print "1") if (/$entry/) while ($_ = "will");
print "0"'
syntax error at -e line 1, near ") while"
Execution of -e aborted due to compilation errors.
seperating the bits seems to work. it seems to break down when i want to
use the if statement in combination with the while.
using print to simulate return values.
perhaps i should abandon this idiom and use a normal
while () {
if () {
}
}
i am curious as to why this error crops up...
thanks,
willy
http://www.hackswell.com/corenth
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>