The snipped does not provide any output because it's a basically senseless concatenation of valid Perl expressions. You need to read perlre to learn about regular expressions and maybe you want to read perlsyn to learn about Perls syntactic constructs like if.
Also, you might want to provide a step by step description in prose of what your program is supposed to do - this might help you choose the correct Perl constructs.
In reply to Re^3: Need some help with Regex
by Corion
in thread Need some help with Regex
by perlmonk1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |