Edit: Oops, toolic beat me to the punch!
What about something like this:#!/usr/bin/env perl use strict; use warnings; my $VAR = "TEMP_VAR"; while (<DATA>) { s/\$VAR/$VAR/; print; } __DATA__ create variable $VAR alarm_object 0
In reply to Re: Substituting Variables while reading text file
by frozenwithjoy
in thread Substituting Variables while reading text file
by mohanm_eee
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |