in reply to add new lines to output.
I think You have missed the patten matching operator. And with out checking pattern matching status , you are seeking for $1,$2,$3,$4 variables. If the matches get succeeded only then you can access those variables. So you check with if conditionif ( $_ =~ ( regulare expression ) { # print the $1,$2,$3,$4 ..... }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: add new lines to output.
by Marshall (Canon) on May 07, 2010 at 09:23 UTC | |
|
In Section
Seekers of Perl Wisdom