perl Tk question

2005-08-31 Thread nikhil anand
Hi, I had a question in perl Tk. I have created a canvas widget. I want to associate scrollbars to this canvas widget and make them work. I have also used zoomIn and Zoomout as command in canvas. So the scrollbar should attach itself to the widget so that it works for the zoom on the canvas also. p

RE: ActivePerl Digest, Vol 19, Issue 37

2005-08-31 Thread Maxmelbin Neson (RBIN/EDM3)
hought that the \s+ - will return 1 or many spaces between, hence split the string into the (4) buckets using a space as the delimiter. Thanks in advance for the help Chris McEwen Sr. Configuration Management Analyst Alcatel Canada Inc. Office: 416.748.4424 ext 5015 mailto: [EMAIL PROTECTED] ---

Re: Metacharacters

2005-08-31 Thread Laurent Jaskowiak
Hi Chris, You want to get the result of the split in a list context (and not in a scalar context). So you have have to enclose the variable list between parenthesis. ($Activity_Date,$Activity_ID,$Activity_Owner,$Activity_Name) = split (/\s+/,$Activity_Detail_Line); Laurent [EMAIL PROTECTE

RE: Metacharacters

2005-08-31 Thread Gardner, Sam
Title: Message  > I need to put each string prior to a space into a seperate variable.  Here is my string:  > 05-Dec-01.10:00:50  activity011204.22  CLUNGU   "(31246)"  > Here is my command to dump the variables:  > $Activity_Date,$Activity_ID,$Activity_Owner,$Activity_Name = split (/\

Re: Metacharacters

2005-08-31 Thread Deane . Rothenmaier
Chris, You need parens around the four variables, and use a quoted string instead of a regexp ($date, $activity, $owner, $id) = split( " ", $string ); should do it [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 08/31/2005 14:31                 To:        "$Bill Luebkert" <[EMAIL PROTE

RE: Metacharacters

2005-08-31 Thread Gardner, Sam
Title: Message >> It is returning:  > >Results of the split is: Date: ID: Owner: Name:4   >These results look like they're coming from your variable names, somehow.  Or $Activity_Detail_Line isn't what you think it is.\   Actually, looking at your results, it's more likely you have a stateme

RE: Metacharacters

2005-08-31 Thread Bowie Bailey
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > I need to put each string prior to a space into a seperate > variable. Here is my string: > > 05-Dec-01.10:00:50 activity011204.22 CLUNGU "(31246)" > > Here is my command to dump the variables: > $Activity_Date,$Activity_ID,$Acti

RE: Metacharacters

2005-08-31 Thread Ken Barker
You need to enclose your variables on the left in parenthesis.   ($Activity_Date,$Activity_ID,$Activity_Owner,$Activity_Name) = split (/\s+/,$Activity_Detail_Line);   Ken Barker IT Lead Americall Group, Inc 314-213-7927 [EMAIL PROTECTED] -Original Message-From: [EMAIL PROTECT

RE: chmod attempt fails on reloc.txt entries during installation

2005-08-31 Thread Jan Dubois
> Hey guys. I'm on a virtual private server that doesn't allow non-root > (i.e. me) users to change the perl installation, which is woefully > outdated right now. So I'm installing ActivePerl in my own > subdirectory. When I try to run the install.sh script, however, I get > > Copying files to /hom

Re: Metacharacters

2005-08-31 Thread Chris . McEwen
Bill, Another simplier challenge: I need to put each string prior to a space into a seperate variable.  Here is my string: 05-Dec-01.10:00:50  activity011204.22  CLUNGU   "(31246)" Here is my command to dump the variables: $Activity_Date,$Activity_ID,$Activity_Owner,$Activity_Name = split

Re: Post installation problem with @INC on Solaris

2005-08-31 Thread Don Hey
Folks: I have finally successfully installed ActivePerl on our Solaris box. My goof up *seems* to have been in the way I "worked around" the installation pre-requisite for GNU tar. I had opened the tar ball on another system (Linux) and copied the expanded files to the target Solaris box usin

Re: Anything like sh's set -x in PERL...?

2005-08-31 Thread $Bill Luebkert
Arijit Das wrote: > Is there anything like set -x in Boure Sheel scripts > in Perl which can print all the statements as they are > executed? You could debug with -d switch and then set trace on (t) and pipe continue (|c) to the PAGER and have the output redirected to a file by setting the PAGER

Re: Win32::ODBC -- Using two databases simultaneously

2005-08-31 Thread Craig Cardimon
Thanks, Wayne. I've never tried that with DB connections. Wayne Simmons wrote: First off I'd recommend using DBI instead of win32. In case you don't know DBI is a generic interface and as impossible, improbable, or ridiculous as it sounds, you may need to use a different database, different OS,

RE: Win32::ODBC -- Using two databases simultaneously

2005-08-31 Thread Wayne Simmons
First off I'd recommend using DBI instead of win32. In case you don't know DBI is a generic interface and as impossible, improbable, or ridiculous as it sounds, you may need to use a different database, different OS, etc. DBI will ease that transition. Trust me I speak from experience. Aside from

RE: Anything like sh's set -x in PERL...?

2005-08-31 Thread Brian Raven
Arijit Das wrote: > Is there anything like set -x in Boure Sheel scripts in Perl > which can print all the statements as they are executed? Yes, that and a whole lot more. See the -D switch in 'perldoc perlrun'. Unfortunately it requires that perl be compiled with debugging enabled, which I don't

Win32::ODBC -- Using two databases simultaneously

2005-08-31 Thread Craig Cardimon
I'm connecting to two databases at the same time, test and production. I have two sets of DSN connections and connection checks: my $DSN = "Real"; my $DSN2 = "Test"; my $connection = new Win32::ODBC($DSN); my $connection2 = new Win32::ODBC($DSN2); ## Make sure the connection is valid if ( ! $co

Anything like sh's set -x in PERL...?

2005-08-31 Thread Arijit Das
Is there anything like set -x in Boure Sheel scripts in Perl which can print all the statements as they are executed? -Arijit Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs ___

chmod attempt fails on reloc.txt entries during installation

2005-08-31 Thread John Feminella
Hey guys. I'm on a virtual private server that doesn't allow non-root (i.e. me) users to change the perl installation, which is woefully outdated right now. So I'm installing ActivePerl in my own subdirectory. When I try to run the install.sh script, however, I get Copying files to /home/jsqrd/bin