SparkeyG has asked for the wisdom of the Perl Monks concerning the following question:
In the following snippit, I wish to take the second match, $2, and pass it to a sub that will create a DB table.
The problem is that w/in the sub, the variable shows the entire line matched.
The output I am getting is:if ( /(^\s?>)(.*)$/ ) { print "$2\n"; &createTable($2); next; } sub createTable { print $_; }
The expected output would be, I thought...apples >apples trees >trees etc.. >etc..
JAPP SparkeyGapples apples trees trees etc.. etc..
Back to
Seekers of Perl Wisdom