develooper Front page | perl.beginners | Postings from May 2012

To quote variables or not

Thread Next
From:
sono-io
Date:
May 23, 2012 17:13
Subject:
To quote variables or not
Message ID:
E2B82F86-EB33-439A-AF6F-54758F224496@fannullone.us
	A script that I'm refactoring has global variables in two different styles, e.g.:

$main::global->{form}->{'mailprog'}

$main::global->{form}->{mailprog}

	The quote marks don't seem to make a difference, so what would be the advantage of using them?  What are they and what do they do?  I don't recall seeing anything like this before.

Thanks,
Marc
Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About