The output which i need is if the values are not present in array, then $Word dollar dollar dollar $test dollartesting#!/usr/bin/perl -w use strict; use warnings; my %words = map { $_ => 1 } qw($Word $name $test); my $line = '$Word $ $ $ $test $testing'; $line =~ s/(\$\w*)/exists $words{$1} ? $1 : " dollar "/eg; print "$line\n\n"
In reply to Re^4: Use of uninitialized value in concatenation
by gem555
in thread Use of uninitialized value in concatenation
by gem555
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |