I've been working on a new script and unfortunately come to a brick wall.
Basically I have a variable with a numerical value in it (ex. $food = "5";) that's passed to a subroutine.
Alright, so far so good.
But now I need the variable's contents (5) to be used in a new variable, which is assigned to something else.
Ex. $work_5 = "plumbing";
I've looked around but still can't find any solutions to my problem, although I'm sure it's simple.
Any help is greatly appreciated, Thanks!