Otherwise you're not guaranteed to have a sensible value in $1. You might still have the result from a previous match...if (m/(\d+\.\d+\.\d+\.\d+)/) { my $PRTABL=$1; s/\w{3} \w{3} \d+ \d+:\d+:\d+ \d{4}/$clocks{$PRTABL}/; } else { warn "match failed"; }
In reply to Re: replace with hash value?!
by trammell
in thread replace with hash value?!
by lcollins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |