in reply to Re: Re: SQL pulling information
in thread SQL pulling information

Use DBI to connect to the database, and launch your SQL statement, then use split to pull apart the result so you get the individual numbers, which you can then manipulate to your heart's content:
use strict; use DBI; my $mynumber=44; # Boilerplate connect code skipped. my $sth=$dbh->prepare("select column from table where column LIKE '%$m +ynumber%'"); $sth->execute; while (my $ref=$sth->fetchrow_arrayref) { my @numbers=split /|/, $ref->[0]; # do something with @numbers, optionally if /44/ } print "This code is untested. Beware of dragons.\n";
Does this help you?

CU
Robartes-