In the variable $hobbit I have stored value "Emulex LPe16000".
Now I need a regular expression to match the "LPe16000" part of the value after "Emulex".
Please ignore any syntax errors,I am a novice at perl..!
$hobbit="Emulex LPe16000"
if ($hobbit = ~m/Emulex ^\w+$/)
print "lol";
Run Code Online (Sandbox Code Playgroud)