> $done="false";
>
> while( $done eq "false ") {
> eval {
> ......
> .....
> read form files.
> ....process info...
> write back to files
>
> };
> ( $@ ) ? ($done="false") : ($done="true");
>
> }
I don't understand why this isn't working. Change the $@ line to:
( $@ ) ? (print $done="false") : (print $done="true");
and see what you get.
Btw, one would more normally code the ?: expression as:
$done = $@ ? "false" : "true";
Indeed, I would probably code the loop without use of while:
{ eval {
# do stuff
} or redo }
- Help for a newbie.. JM C. Alonzo
- Re: Help for a newbie.. Me
- Exceptions ( catching and handeling). Rajeev Rumale
- Re: Exceptions ( catching and handeling). Michael Fowler
- Re: Exceptions ( catching and handeling). Rajeev Rumale
- Re: Exceptions ( catching and handeling). Michael Fowler
- Re: Exceptions ( catching and handeling). Me
- Re: Exceptions ( catching and handeli... Rajeev Rumale
- Re: Exceptions ( catching and handeli... Paul Johnson
- Re: Help for a newbie.. Anthony E.
- Re: Help for a newbie.. Nigel Wetters
