T
Terri
I'm brand new to perl any help would be appreciated. I have a perl script
that parses 2 files and imports data into a database. One file maps field
names between the data source and destination. The other file is the source
of the data. The script was working fine until I needed to add a field
called $custom1.
In my mapping fiel a line might look like this:
Table1.Field1 = price.price
The above works. This wont work.
Table1.Field1 = price.$custom1
Instead of getting the value of $custom1 in my destination field I get the
string "price"
I understand that the $ is used to declare a variable in perl. How can I get
perl to interpret $custom1 as a string and not a variable?
that parses 2 files and imports data into a database. One file maps field
names between the data source and destination. The other file is the source
of the data. The script was working fine until I needed to add a field
called $custom1.
In my mapping fiel a line might look like this:
Table1.Field1 = price.price
The above works. This wont work.
Table1.Field1 = price.$custom1
Instead of getting the value of $custom1 in my destination field I get the
string "price"
I understand that the $ is used to declare a variable in perl. How can I get
perl to interpret $custom1 as a string and not a variable?