qx() vs backticks

2009-04-19 Thread R. Hicks
Are there any gotchas for using qx() to run system commands versus backticks? Robert -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Slice?

2009-03-16 Thread R. Hicks
$template->param( RESULTS => $self->dbh->selectall_arrayref(' SELECT age, day FROM table WHERE id = ?', { Slice => {} }, $self->session->param('cell')->{'sid'} ) ); I saw that code and while I do database stuff I was wondering what that "Slice => {}" does? Thanks, Robert -- To

Re: Perl DBI connect from Windows

2008-12-22 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: 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: same variable defined twice

2008-05-23 Thread R. Hicks
Octavian Rasnita wrote: Hi, I've tried the following script and it works fine: use strict; my $text = 1; my $text = 2; print $text; Shouldn't perl disallow defining the $text variable a second time in the same script if using "use strict"? Thank you. Octavian I just ran into this: my $li

Re: scaling text

2008-05-23 Thread R. Hicks
zentara wrote: You really didn't say how you are making the badges, like is there a limited defined bounding box that each name must fit in? Or can you adjust the name-box size to accomodate longer names? etc. etc. zentara I am being handed pre-made badges of 121x120. The first line of pixel

Re: scaling text

2008-05-21 Thread R. Hicks
zentara wrote: On Mon, 19 May 2008 14:37:27 -0400, [EMAIL PROTECTED] (Robert L Hicks) wrote: Is there an algorithm to scale text on a graphic? I have a badge 200x200 that I would like to scale text on. I have looked at a bunch of Perl image libraries ( o_O ) but I didn't see an example. Ro