State variables are not interpolated into strings. For example: sub banner { state $inv = 'inv'; state $from_fstring = "${inv}x"; ... } $inv is renamed to banner_inv, but that name isn't put into the f-string for the reference.