Re: Perl DBI connect from Windows

2008-12-20 Thread R. Hicks
MGautam wrote: Hi, I want to connect to a "Oracle SQL Developer" with perl (running on windows). I tried something like, use DBI; $db = "database1"; $host = "10.0.0.1:1433"; $user = "username"; $password = "password"; my $dbh = DBI->connect ("DBI:Oracle:database=$db:host=$host",

Re: disk performance or destructive testing

2008-12-20 Thread Yogesh Sawant
On Dec 17, 1:31 am, ben.pe...@gmail.com (Ben Perl) wrote: > Does anyone know any perl module for validating or do some desctructive > testing on disks on Linux platform? > found a few constructive ones, but nothing that would be destructive. i doubt that you would find any at CPAN. check if any

Perl DBI connect from Windows

2008-12-20 Thread MGautam
Hi, I want to connect to a "Oracle SQL Developer" with perl (running on windows). I tried something like, use DBI; $db = "database1"; $host = "10.0.0.1:1433"; $user = "username"; $password = "password"; my $dbh = DBI->connect ("DBI:Oracle:database=$db:host=$host", $

Re: substitute math

2008-12-20 Thread Owen
> Hi, > > I have a variable for which I ultimately want to substitute w/ some > math. Is there a way to get the result "6"? > > my $number=123; > $number =~s/123/1+2+3/s; #This method results in "1+2+3", not the "6" > I am looking for > print "$number"; Run this program and see if you can see wha

Re: substitute math

2008-12-20 Thread Chas. Owens
On Sat, Dec 20, 2008 at 01:04, hotkitty wrote: > Hi, > > I have a variable for which I ultimately want to substitute w/ some > math. Is there a way to get the result "6"? > > my $number=123; > $number =~s/123/1+2+3/s; #This method results in "1+2+3", not the "6" > I am looking for > print "$number

substitute math

2008-12-20 Thread hotkitty
Hi, I have a variable for which I ultimately want to substitute w/ some math. Is there a way to get the result "6"? my $number=123; $number =~s/123/1+2+3/s; #This method results in "1+2+3", not the "6" I am looking for print "$number"; -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org