if( /^\s*>/ ) { print "$'\n"; createTable( $' ); } sub createTable { print shift; } [download]
In reply to Re: Passing $2 to a sub by Gloom in thread Passing $2 to a sub by SparkeyG