I know this should be easy but what is the problem here: if ($_ =~ /eventlog/) { $_ =~ s/.*=(.*)/$1/ ; $_ =~ s|\\|/|g; print "\$_ is $_"; # prints out "C:/xxxx/yyyy/xxxxx" $eventlog = $_; print "EVENTLOG IS $eventlog \n"; # prints out "EVENTLOG IS "
Why can I not assign a scalar to have the value of $_ ? Thanks _______________________________________________ Perl-Unix-Users mailing list. To unsubscribe go to http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users