in reply to Re: Use of uninitialized value in concatenation
in thread Use of uninitialized value in concatenation
It gives a warning message#!/usr/bin/perl -w use strict; my %words = map { $_ => 1 } qw($Word $name); my $line = '$Word $ $1'; $line =~ s/(\$(\w+)?)/exists $words{$1} ? $1 : "dollar$2"/eg; print "$line\n\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Use of uninitialized value in concatenation
by AnomalousMonk (Archbishop) on Jun 11, 2009 at 06:00 UTC | |
by gem555 (Acolyte) on Jun 11, 2009 at 06:18 UTC | |
by AnomalousMonk (Archbishop) on Jun 11, 2009 at 06:24 UTC |