I have 14 canvas's. they are names $canvas1 through $canvas14. I want to delete all of those canvas without putting delete for all 14 canvas. Here what i tried:
for (1 ..14){
my $canvas = "\$canvas$_";
$canvas->delete("all");
}
When i print $canvas is looks correct, but when i delete it tells me $canvas is unitialized value.
Is there a better way to do this?
for (1 ..14){
my $canvas = "\$canvas$_";
$canvas->delete("all");
}
When i print $canvas is looks correct, but when i delete it tells me $canvas is unitialized value.
Is there a better way to do this?