in reply to Re^2: getting a while loop to terminatein thread getting a while loop to terminate
I guess I don't follow you here:
$ perl -le " die 666 if q/0/ "
$ perl -le " die 666 if $what = q/0/ "
syntax error at -e line 1, near "if ="
Execution of -e aborted due to compilation errors.
My shell doesn't interpolate $what, as you can see from the session I posted, use single quotes if your shell interpolates doubles
Or you could even omit $what =
Whether it is assigned to a variable or not , '0' is always false
An Englishman in New York
An American Werewolf in London
An American in Paris
The Innocents Abroad
An Idiot Abroad
Robinson Crusoe on Mars
A Connecticut_Yankee in King Arthur's Court
There and Back Again
Travels into Several Remote Nations of the World
Results (81 votes). Check out past polls.