Can't you just turn your for loop into a hash reference instead of an array
ref as such?
%eventlogs = (Application = 'appevent.evt',
System = 'system.evt', #not sure of filenames
Security= 'security.evt' #not sure of filenames
);
for my $eventLog
On 1/31/2003 4:51 AM, Ahmed, Mubariz wrote:
Hi,
I have problem with find and replace. Below is the script
$src=c:\\mub\\mubwork;
$inter=c:\\mub\\mubwork\\test\\tets1;
$dest=c:\\mubariz\\dpgdata;
$inter=~s/$src/$dest/; # Result should be c:\mubariz\dpgdata\test\tets1
$inter=~s/\Q$src\E/$dest/;