D
dn_perl
I am unable to print a tab using "\t" sequence in a file
which has some database related statements.
I am using perl on a solaris server with Oracle.
In some_dbi.pl, the patch is : \t prints as single character.
--------
my $this_str, $sub_str ;
$sub_str = "abc" ;
$this_str = sprintf "%s\t%s", $sub_str, $sub_str ;
system( "echo $this_str") ;
--------
In ch.pl, the patch is : \t prints as tab-character.
--------
$sub_str = "abc" ;
$this_str = sprintf "%s\t%s", $sub_str, $sub_str ;
print $this_str ;
--------
What could be causing this behaviour? I want \t to print
as tab .
TIA.
which has some database related statements.
I am using perl on a solaris server with Oracle.
In some_dbi.pl, the patch is : \t prints as single character.
--------
my $this_str, $sub_str ;
$sub_str = "abc" ;
$this_str = sprintf "%s\t%s", $sub_str, $sub_str ;
system( "echo $this_str") ;
--------
In ch.pl, the patch is : \t prints as tab-character.
--------
$sub_str = "abc" ;
$this_str = sprintf "%s\t%s", $sub_str, $sub_str ;
print $this_str ;
--------
What could be causing this behaviour? I want \t to print
as tab .
TIA.