|August 1999||Return to the Perl Hardware Store||Slide #25|
An alternative to Interpolation is syntactic sugar.
Example: You have a data structure you want to print out, say
$struct = [AND, [OR, [ATOM, 'x'], [ATOM, 'y']], [NOT, [ATOM, 'z']]]
You'd like this to print out as (x|y)&(~z).
Interpolation only works on strings.
|Next||Copyright © 1999 M-J. Dominus|