S
sharma__r
#############################
use strict;
use warnings;
my $var = "''''''''''''";
my $p_pulse = q{./\\};
my $n_pulse = q{'\\/};
my $knt = 1;
print $var;
$var =~ s/^((...){$knt}).../$1 . (($1 =~ m{'}) ? $n_pulse : $p_pulse)/
e; ## <---- offending line
print $var;
##########################
when I run the above piece of perl code i get the following warnings:
Use of uninitialized value in concatenation (.) or string at
line 12.
And when i change the $var to "..........." it works fine.
what could be the problem here?
TIA,
-rakesh
use strict;
use warnings;
my $var = "''''''''''''";
my $p_pulse = q{./\\};
my $n_pulse = q{'\\/};
my $knt = 1;
print $var;
$var =~ s/^((...){$knt}).../$1 . (($1 =~ m{'}) ? $n_pulse : $p_pulse)/
e; ## <---- offending line
print $var;
##########################
when I run the above piece of perl code i get the following warnings:
Use of uninitialized value in concatenation (.) or string at
line 12.
And when i change the $var to "..........." it works fine.
what could be the problem here?
TIA,
-rakesh