in reply to good delimiter in data for Perl

You seem to be confused about the distinction between data and code. Perl has no problem with using a record or field separator of $#$. Personally, I prefer the tabulator (chr 09) as a universal field separator. Why do you think that Perl has a problem with using $#$ as a separator?

Replies are listed 'Best First'.
Re^2: good delimiter in data for Perl
by sathiya.sw (Monk) on Jan 07, 2009 at 15:01 UTC
    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

      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.