in reply to No strict refs

use strict 'refs'; is what's preventing simulate_opening_file from being called if someone did <simulate_opening_file>...</>, so I applaud your desire to use it.

Two options:


By the way, you'll have problems if the replacement value contains a "<".