Kurt Asdal wrote: > > Hello all, > > If I have a string, such as: > > $string="1, 6, 8, 10, 15"; > > How could I convert it to an array, such as: > > @array(1, 6, 8, 10, 15);
Assuming that the array elements are numeric only: my @array = $string =~ /\d+/g; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]