I just noticed OP used interpolation in Shell, but not in Perl, although it would be possible
In reply to Re^2: equal treatment by soonix in thread equal treatment by Anonymous Monk