- or download this
my @array = ();
push (@array, $rel_path);
## in my code more than one thing is pushed to @array.
push (@{$self->{files}}, \@array);
- or download this
sub next {
my( $self )= @_;
...
}
}
}
- or download this
my $file;
while( $file = $f->next() ) {
print "@{$_}\n";
}
- or download this
push (@{$self->{output}}, [$rel_path, $var1, $var2]);