#!/usr/bin/perl use Data::Dumper; $hall_name="Foo's Hall"; $contact_name="Prof Bar"; $contact_email="profbar\@fooshall.edu"; $contact_telephone="1'234'567'8901"; my @elements = ( \$hall_name, \$contact_name, \$contact_email, \$contact_telephone ); my @elems2 = ( $hall_name, $contact_name, $contact_email, $contact_telephone ); map { $$_ =~ s/'//g } @elements; print Dumper(\@elements); map { $_ =~ s/'//g } @elems2; print Dumper(\@elems2); __END__ #Output looks like: $VAR1 = [ \'Foos Hall', \'Prof Bar', \'profbar@fooshall.edu', \'12345678901' ]; $VAR1 = [ 'Foos Hall', 'Prof Bar', 'profbar@fooshall.edu', '12345678901' ]; # As you can see the first one contains the references, # And the second does not.