in reply to Re: returning data from a for() loop?
in thread returning data from a for() loop?
(:#!/usr/bin/perl -w use strict; my $hi = "flux"; print &scroll($hi); sub scroll { my ($i) = @_; my @x; push @x,substr($i,$_,1),"\n" for (0 .. length $i); return @x; }
|
|---|