[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Perl Question
- Subject: [ale] Perl Question
- From: fletch at phydeaux.org (Fletch)
- Date: 24 Aug 2003 22:25:19 -0400
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