I have a variable $data which contain a bunch of data; I want to mach if either of two pattern present in the variable the condition is true so i write the code like
if ( $data =~ m/"Restore actions:"|"Setting Changes:"/)
and I put a print statement in the else condition
unfortunately its always going to the else even though these two patterns are present in the variable.
below is the data contain by the $data variable
sd: Save time: Thu ...
sd: ...
sd: Restore actions:
sd: ...
sd: Setting Changes:
sd: ...