In string, @potato now must be written as \@potato at - line 5, near "@potato" Any ideas why this doesn't work? Once the typeglob assignement is made, all entities that were called "spud" should also be referred to as "potato"-the names should be freely interchangeable. This example (below) is taken right out of the leopard book (O'Reilly, Advanced Perl Programming, p.42)$spud = "Wow"; @spud = ("idaho", "russet"); *potato = *spud; # Alias potato to spud using typeglob assignment print "$potato\n"; # prints "Wow!" print "@potato\n"; # doesn't work!!!!!
In reply to typeglob assignment question by tejnil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |