ben@hildred.us wrote: >When running under taint mode the first works, but the second does not Not normally regarded as a bug. Perl's taint checking deliberately doesn't track data flows in a fine-grained manner, because that would be much more expensive (even for programs not using tainting). Once a statement has read a tainted variable, the whole statement is tainted, so it can't perform unsafe actions and its outputs are tainted. You've written the same logic in a two-statement form and in a one-statement form, so the difference in tainting behaviour is expected. -zeframThread Previous | Thread Next