Gossamer Forum
Home : Products : Links 2.0 : Customization :

Re: Converting `` to \n

Quote Reply
Re: Converting `` to \n In reply to
Maybe you can check the following sub:

Code:
sub split_decode {
# --------------------------------------------------------
# Takes one line of the database as input and returns an
# array of all the values. It replaces special mark up that
# join_encode makes such as replacing the '``' symbol with a
# newline and the '~~' symbol with a database delimeter.

my ($input) = shift;
my (@array) = split (/\Q$db_delim\E/o, $input, $#db_cols+1);
foreach (@array) {
s/~~/$db_delim/g; # Retrieve Delimiter..
s/``/\n/g; # Change '' back to newlines..
}
return @array;
}

Subject Author Views Date
Thread Converting `` to \n Lee 847 Feb 12, 2001, 1:54 PM
Post Re: Converting `` to \n
ds 824 Feb 12, 2001, 3:54 PM