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
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]
---
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
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 (/\
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
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
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
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
> 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
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
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
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
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,
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
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
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
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
___
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
18 matches
Mail list logo