in reply to Re: Splitting the record using the delimiter
in thread Splitting the record using the delimiter
UPDATE: Sorry, I should have realized that I just repeated what kcott said in the previous reply.#!/usr/bin/perl use strict; my $id = 'Hi|Hello\|Sir'; my @code = split(/(?<!\\)\|/,$id); print $code[1]."\n";
|
|---|