Insted of
map { ... } split("\t", $line)
use
map { ... } $line =~ /(.*?)(?:\t|$)/g
>perl -le "@a = split(/\t/, """a\t"""); print scalar @a" 1 >perl -le "@a= """a\t""" =~ /(.*?)(?:\t|$)/g; print scalar @a" 2
In reply to Re: Looking for elegant solution to dbi coding problem
by ikegami
in thread Looking for elegant solution to dbi coding problem
by Commander Salamander
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |