which is an attempt to create a CONSTANT which looks like variable
use vars qw( $PIE ); *PIE = \"Warm Apple"; print "pie: $PIE\n";
You were pretty specific, so I'm assuming you were already aware of use constant PIE => "Warm Apple"; which results in a constant sub that can't be interpolated into strings (easily.)
-sauoq "My two cents aren't worth a dime.";
In reply to Re: How to create a "CONSTANT"
by sauoq
in thread How to create a "CONSTANT"
by freddo411
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |