in reply to Substitute: for having tabs between the characters

I am engaging in some "mind reading" here. Maybe you just want a tab between $bar1 and $bar2? A tab character between each individual character of a long string would be a rather strange application - more likely is a tab between "word" tokens. A short example of the desired output would have made things crystal clear.
#!/usr/bin/perl use strict; use warnings; my $bar1 = 'this002haa007hoothat'; my $bar2 = 'abcdef'; my $bar3 = "$bar1\t$bar2"; print "$bar3\n"; #or without $bar3 print "$bar1\t$bar2\n"; __END__ prints: this002haa007hoothat abcdef this002haa007hoothat abcdef

Replies are listed 'Best First'.
Re^2: Substitute: for having tabs between the characters
by snape (Pilgrim) on Apr 13, 2010 at 21:18 UTC

    I am sorry to say that your mind reading was not correct. I was actually looking for the fault in my substitute command but thanks for your intuitive thinking . :)

      Thanks for your reply! Hey, no problem. Sometimes its hard to figure out what is going on. :-) Was just trying to be helpful.