view _test/any.pl @ 30:dd4d72600c69

ORM in works
author Sergey
date Tue, 03 Nov 2009 16:31:47 +0300
parents 818c74b038ae
children 1828103371d0
line wrap: on
line source

#!/usr/bin/perl -w
use strict;

my @data = (1,2,3,4);

sub func {
    return \@data;
}

print "$_\n" and $data[3]=0 foreach @{func()};