develooper Front page | perl.beginners | Postings from December 2002

Programming Perl - Pick your own quotes pg 63-64

Thread Next
From:
Paul Kraus
Date:
December 27, 2002 08:01
Subject:
Programming Perl - Pick your own quotes pg 63-64
Message ID:
012901c2adc1$1e89b5b0$64fea8c0@pkrausxp
Ok I am working through the programming Perl book and I don't understand
what you would use this for?

top of pg64
----
$chunk_of_code = q {
	if ($condition) {
		print "Gotcha!";
	}
};


is $chunk_of_code supposed to contain Perl code? If so why? When would
you use this? What does this assign to the variable? I am assuming a
true false value but I am not sure.

Thanks.

Hope everyone is having a great holiday!

Paul Kraus
Network Administrator
PEL Supply Company
216.267.5775 Voice
216-267-6176 Fax
www.pelsupply.com

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