John,
for my this code:
my $delimiter = '$';
my $str = 'hello$world$buddy';
my @li = split/$delimiter/,$str;
print "@li","\n";
How can I make it work correctly?
Thanks
John W. Krahn wrote:
> "/" is NOT a special charater in a regular expression. It is just that
> in Perl the default delimiter for some operators is "/" (i.e. m//, s///,
> tr///, etc.).