Hi all,
i want to raise a error if a split function dont find the pattern specifed.
my ($s, $a, $c, $r) = (split /,/, $_)
Input file:
A|B|C|D
here the pattern is comma but input file contains pipe. it should die here.
could you please help me out handle this?
If input file contains different delimiter other than one specified in split, it should die.