in reply to Re: good delimiter in data for Perl
in thread good delimiter in data for Perl

Perl has no problem in doing it. But when i use the $#$ as the delimiter, then i need to escape it to avoid interpreting it as variable..

My data can have tabs also, so what i can have as delimiter was my question ?
Sathiyamoorthy

Replies are listed 'Best First'.
Re^3: good delimiter in data for Perl
by Corion (Patriarch) on Jan 07, 2009 at 15:07 UTC

    Why not store the delimiter in a variable and then use that variable?

    my $delimiter = '$#$'; my @columns = split /\Q$delimiter\E/, $data;

    So, again, I'm not sure why you see this as a problem, as Perl provides many convenient escaping mechanisms, like single quotes and quotemeta.