[ale] Perl Question

Fletch fletch at phydeaux.org
Sun Aug 24 22:25:19 EDT 2003



Check perldoc -f split.  split() in scalar context returns the number
of fields found and puts the split items into @_ (where arguments to
subroutines normally go).  If you really need the number of fields, do
something like:

my @fields = split( $backend_seperator, backendCommand( $query ) );
my $recs = @fields;

-- 
Fletch                | "If you find my answers frightening,       __`'/|
fletch at phydeaux.org   |  Vincent, you should cease askin'          \ o.O'
770 294-0820 (m)      |  scary questions." -- Jules                =(___)=
                      |                                               U
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list