If $var is true, then !$var is false ('').
If $var is false, then !$var is true (1).
That new value is then assigned to $var
Alternatively, you could say $var ^= 1 to do the same sort of thing, just with 1 and 0 instead of 1 and ''.
In reply to Re^3: In place replace, ignoring between quotes
by SuicideJunkie
in thread In place replace, ignoring between quotes
by Klainn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |