http://www.perlmonks.org?node_id=272294


in reply to using a set variable in system or exec

Hi,

Or, you could try
system "rm /storage/filename${date}_more_filename.csv";

hope this helps

thinker