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

Programming Perl - Pick your own quotes pg 63-64

Thread Next
Paul Kraus
December 27, 2002 08:01
Programming Perl - Pick your own quotes pg 63-64
Message ID:
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.


Hope everyone is having a great holiday!

Paul Kraus
Network Administrator
PEL Supply Company
216.267.5775 Voice
216-267-6176 Fax

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About