in reply to Split function

You would have to post some sample code and the specific error text. "Its giving me error" doesn't really say much.

Just for grins:

#!/usr/bin/perl my $foo="|abcxyz||fiuhs|"; for (split(/\|/,$foo)) { print "field is [$_]\n"; }
Creates this output:

field is [] field is [abcxyz] field is [] field is [fiuhs]

Which seems reasonable to me...