Use Split with Scalar Pattern?
Can I use the split function where my pattern is a scalar variable? For
my $splitPattern = '|' ;
my( $data1, $data2 ) = split( /$splitPattern/, $someData ) ;
I can't seem to get it to work. If I hard code the pattern in the split
function call, it works fine.
(Resent to correct silly errors - sorry)