when @foo.contains('bar') { # do something } this would effectively become (in an ugly mix of perl 5 and 6) fork and do { if @foo.contains('bar') { # do something } } except it would run in the same process and would probably be optimized more.