I would add a die statement at the end of the open rather than a print statement.
Also, are you reading a data file or a directory with your open statement?
Using the your sample data and changing the range to 5001..5003 would return the following.
5503, 5502, 5501
5502, 5503, 5501
5502, 5501, 5503
5503, 5501, 5502
5501, 5503, 5502
5501, 5502, 5503
I hope that helps.
--Kevin
Something like this maybe?
use Algorithm::Permute;
my $p = new Algorithm::Permute(['a'..'d']);
while (my @res = $p->next) {
print join(", ", @res), "<br>";
}
[url=http://search.cpan.org/~edpratomo/Algorithm-Permute-0.11/Permute.pm]Algorithm::Permute[/LINK]
Output:
d, c, b, a
c, d...
I am sorry to hear that you are having problems. For me is was a click and run type situation. I don't recall seeing anything that specified XP Pro in lieu of XP home.
I recently used XAMPP Windows 1.6.6 [url=http://sourceforge.net/project/downloading.php?groupname=xampp&filename=xampp-win32-1.6.6-installer.exe&use_mirror=superb-west]installer[/LINK] without any problems Windows XP Pro.
--Kevin
I use [url=http://www.apachefriends.org/en/xampp.html]XAMPP[/LINK] for development.
It includes:
Apache
MySQL
PHP + PEAR
Perl
mod_perl
mod_ssl
OpenSSL
phpMyAdmin
Webalizer
Mercury Mail Transport System for Win32 and NetWare Systems v3.32
Ming
JpGraph
FileZilla FTP...
I answered your question at the other forum you posted your question on. I agree with travs69 you need an XML parser. To many possible problems rolling your own solution.
If you go to the [url=http://www.perljax.us/demo/]PerlAJAX demo[/LINK] page you can view the source code of the demo scripts which will help with what you are wanting to achieve.
The problem has been resolved. Short Answer - The value for id was empty. I decided to used a hidden field in lieu of the url as I originally planned.
@MillerH - Your code did work fine once I got the id worked out.
@Paul - The is was the only param without a value, all other's were...
Thank you MillerH. I tried that as well as this and still no errors, nor does it update the table.
$sql = $dbh->prepare("UPDATE sometable SET name=?, category=? WHERE id=$params{'id'}");
$sql->execute($params{'name'}, $params{'category'});
$sql->finish();Also tried this.
$sql =...
Can you use placeholders when using the UPDATE statement? I have tried the following, however, it does not give an error nor does it update the table.
$sql = $dbh->prepare("UPDATE sometable SET (name, category) WHERE id=(?) VALUES (?,?)" , undef, $params{'name'}, $params{'category'})...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.