Re: change char, keep case

2005-06-18 Thread John W. Krahn
Ing. Branislav Gerzo wrote: Elvis Cehajic [EC], on Saturday, June 18, 2005 at 19:11 (+0200) wrote: EC> Like that?: EC> use strict; EC> use warnings; EC> my $first = 'B'; EC> my $second = 'a'; EC> ($first, $second) = (uc($second) , lc($first)); EC> print $first, "\n"; EC> print $second, "\n";

Re: How to figure date of Sunday? Favorite Date/Time packages

2005-06-18 Thread Paul Johnson
On Sat, Jun 18, 2005 at 05:45:24AM -0700, Peter Scott wrote: > On Sat, 18 Jun 2005 01:38:44 +0200, Paul Johnson wrote: > > Too much work! > > > > $ perl -MDate::Manip -le 'print UnixDate Date_GetPrev("today", "sun"), "%F"' > > Or even > > $ perl -MDate::Manip -le 'print UnixDate ParseDate("last

Wanted: example of perl code embedded in HTML in Internet Explorer

2005-06-18 Thread Siegfried Heintze
I know it is possible to do this (see title). Does ActiveState perl automatically install the Perl interpreter as COM object that is compatible with Internet Explorer? If not, how do I do it? Anyone have some sample code or a URL? Thanks, sieg -- To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Re: change char, keep case

2005-06-18 Thread Elvis Cehajic
Ing. Branislav Gerzo schrieb: Elvis Cehajic [EC], on Saturday, June 18, 2005 at 19:11 (+0200) wrote: EC> Like that?: EC> use strict; EC> use warnings; EC> my $first = 'B'; EC> my $second = 'a'; EC> ($first, $second) = (uc($second) , lc($first)); EC> print $first, "\n"; EC> print $second, "

Re: change char, keep case

2005-06-18 Thread Ing. Branislav Gerzo
Elvis Cehajic [EC], on Saturday, June 18, 2005 at 19:11 (+0200) wrote: EC> Like that?: EC> use strict; EC> use warnings; EC> my $first = 'B'; EC> my $second = 'a'; EC> ($first, $second) = (uc($second) , lc($first)); EC> print $first, "\n"; EC> print $second, "\n"; sorry, I was not clear. I d

Re: change char, keep case

2005-06-18 Thread Elvis Cehajic
Ing. Branislav Gerzo schrieb: Hi all, quite interesting, how you would write this without $temp: use strict; use warnings; my $first = 'B'; my $second = 'a'; ($first, $second) = ($second , $first); print $first, "\n"; print $second, "\n"; but I want keep case of chars, so output is: "Ab" H

RE: change char, keep case

2005-06-18 Thread Moon, John
Sent: Saturday, June 18, 2005 12:58 PM To: beginners@perl.org Subject: change char, keep case Hi all, quite interesting, how you would write this without $temp: use strict; use warnings; my $first = 'B'; my $second = 'a'; ($first, $second) = ($second , $first); print $first, "\n"; print $seco

Re: enter password for su through a script

2005-06-18 Thread Elvis Cehajic
angie ahl schrieb: Hi Hi I'm hoping someone can point me at the right manual/commands I'm trying to work out how to copy a directory (and contents) owned by one user (user1) into a directory owned by another (user2). user1 is user admin and group wheel BTW. The user the files are being co

change char, keep case

2005-06-18 Thread Ing. Branislav Gerzo
Hi all, quite interesting, how you would write this without $temp: use strict; use warnings; my $first = 'B'; my $second = 'a'; ($first, $second) = ($second , $first); print $first, "\n"; print $second, "\n"; but I want keep case of chars, so output is: "Ab" Have a nice day :) -- To unsub

Re: Perpare statements v. Interpolated SQL in DBI/MySQL: Does prepare really help?

2005-06-18 Thread Peter Scott
On Fri, 17 Jun 2005 18:15:13 -0600, Siegfried Heintze wrote: > Does MySQL/DBI really parse SQL statements in advance? I've been using > mostly interpolated SQL statements in my screen scraping bot that is > implemented with multiple threads and HTML::Parser. As you might now, > HTML::Parser calls y

Re: How to figure date of Sunday? Favorite Date/Time packages

2005-06-18 Thread Peter Scott
On Sat, 18 Jun 2005 01:38:44 +0200, Paul Johnson wrote: > Too much work! > > $ perl -MDate::Manip -le 'print UnixDate Date_GetPrev("today", "sun"), "%F"' Or even $ perl -MDate::Manip -le 'print UnixDate ParseDate("last Sunday"), "%F"' -- Peter Scott http://www.perlmedic.com/ http://www.perldeb

Re: :FTP works someplaces

2005-06-18 Thread Robert Citek
On Jun 17, 2005, at 2:11 AM, Thomas Bätzler wrote: Robert Citek <[EMAIL PROTECTED]> Anyone have any ideas why code using Net::FTP on one machine won't work on another? However, the most common cause of problems with Net::FTP is not a Perl but a networking problem - namely firewalls and NAT ga