in reply to Re^2: Calling pax within a perl script (was stupid substitution question)
in thread Calling pax within a perl script (was stupid substitution question)

$file won't interpolate inside q{}. A handful of alternatives: Or something else.

Replies are listed 'Best First'.
Re^4: Calling pax within a perl script (was stupid substitution question)
by viffer (Beadle) on Aug 12, 2010 at 03:41 UTC
    Thanks VERY much for your help. *Finally* got this to work

    $file =~ s/TGZ/tar/; $dir = $file; $dir =~ s!\.S75\.T...tar!\/Invoices\/!; if ($file =~ /(PROD.OPTBL.X.K.)(R*)(.S75.T11.tar)/) { $run=$2; } $command = "pax -r -f $file -s'!$dir!/data/kev/atlanta/emtex/invoi +ces/R$run/!p'";