In the script
#!/usr/bin/perl use warnings; use strict; my $sod='ip6 is used for...'; my $i=0; my @baza_tek=qw( (?^u:ip(\d)) "internet_protocol-$1$2" ); $sod=~s#$baza_tek[$i]#$baza_tek[$i+1]#gee;
i have such an error on execution:
Use of uninitialized value $2 in concatenation (.) or string at...
My question is,
How to tell PERL to show the values of current baza_tek[$i] or $baza_tek[$i+1] at the time, when the error occured?
In reply to Tracing warnings: how to show the regexp values? by nikolay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |