#!/usr/bin/perl
#use strict;
#use warnings;
my $data = 'node: id=c1, class=nb, cx=100, cy=100, r=10';
#in the above string stored in $data i want to replace = with =" and ',' with "\t
so i used the tr operator as follows
$data =~tr/=/="/s;
print "$data";
But this is not giving me the desired result . what am i doing wrong?