hi gr8 ppl
$_ = "package daa; package MyClass::two; package Myclass::SubClass::t +hree;"; /^(\w+) (\w+)\;/; print $2;
The above code works when given as package daa The same code will not work if the string is like this
$_ = "package MyClass::Subclass::one; package Myclass::two;" (please note the semi-colon after the module name)
I got struck here now.. Can anyone give a regex which will solve such kind of a string
Thank u
In reply to Regular Expression by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |