On Thu, 17 Mar 2005 11:19:39 -0500, Jay Savage wrote: > > my $loopscript = $scripts{the_one_I_need} ; > my ($loadargv1, $loadargv2, $loadargv3) = ($var1, $var2, $var3) ; > $loopscript =~ s/^(.+)/[EMAIL PROTECTED] = \($loadargv1, $loadargv2, > $loadargv3\);/; > exec $loopscript ; > > Or something to that effect. The above is untested, but it should work. >
Err... no it won't. At best, it will run the script as an external process and exit the calling script, which I think is not what the original question called for. But I don't think this code will even do that. Can you explain what you were trying to do in the s/// line? Hope this helps, -- Offer Kaye -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>