in reply to array references

Even for the print, you really don't need the c style code, and can do this:
#!/usr/bin/perl use strict; my $a = \(1..10); print $_, " " for (@$a);