in reply to Storing an array of variables

Simply dereference them...
foreach my $line (@elements) { print "$$line<br/>"; # you sure that you don't want this after the s +ubstitution? $$line=~s/'//g; }
Lots of good info on references here at the Monastery but look first to the perldocs.