Reg perl to excel

2007-03-20 Thread Sivarama Prasad Valluri, TLS, Chennai
DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator

Reg perl to excel

2007-03-20 Thread Sivarama Prasad Valluri, TLS, Chennai
DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator

Re: Tweaking a Script

2007-03-20 Thread Stan Cooper
Great! Thanks to both of you! Stan2 Jeff Pang <[EMAIL PROTECTED]> wrote: >Hi; >I need to add a line that calls a shell script to a perl script I found. Is it >as simple as just adding the path of the script? > >else >/usr/local/bin/my_script.sh > Hello, You could write it like: system "/u

Problem w/ libwww-perl.5.803

2007-03-20 Thread Stan Cooper
Hi; I'm trying to install this script, but get this error: Can't connect: IO::Socket::INET: Bad hostname 'server435:51253' Test server timeout How can I change that manually? Here's the code from the Makefile: require 5.005; use strict; use ExtUtils::MakeMaker qw(WriteMakefile prompt); use Confi

Dividing in Perl

2007-03-20 Thread Dukelow, Don
I have a script where I have to divide and all I want is the hole number, not the decimal point. When I do $num = 2; $count = 49; $count /= $num; $count comes out 24.5, I thought I would get 24. If I wanted the remainder I WOULD DO. $count %= $num; which does work. When did Perl start giving 2

Using Dialog in Perl

2007-03-20 Thread Rodrigo Tavares
Hello, I made a script with shell script using dialogs. I try to use the commando Dialog in a perl script. But i can't run the dialog in perl script. Can perl use windows softwares ? I belive this true. What is the software ? best regards, Rodrigo Faria

Re: Dividing in Perl

2007-03-20 Thread Robin Sheat
On Wednesday 21 March 2007 00:34, Dukelow, Don wrote: > and this works.  But every other language I've programmed in anything > dividing with "/" you only get the hole number why? That's because you've only used languages that aren't a very good abstraction of the underlying machine. Many common l

Re: Dividing in Perl

2007-03-20 Thread Rob Dixon
Don Dukelow wrote: I have a script where I have to divide and all I want is the hole number, not the decimal point. When I do $num = 2; $count = 49; $count /= $num; $count comes out 24.5, I thought I would get 24. If I wanted the remainder I WOULD DO. $count %= $num; which does work. When d

Re: STDOUT

2007-03-20 Thread Jenda Krynicky
From: hOURS <[EMAIL PROTECTED]> > if ($return =~ / syntax OK$/) { > print "$progname is OK\n"; > } else { > print "$progname has errors\n"; > } > } > > HTH, Jenda > > > > Thanks Jenda, > I definitely do just want to check syntax and not execute the scripts. > > I r

escape character

2007-03-20 Thread Beginner
Hi, I have a large, 1.3GB xml file that I was trying to validate. It turns out that the file has a lot of exotic characters in it such as: é è Ä È ...etc The area of encoding and internationalisation is one I have no experience of at all and from what I've heard it is rather complex and difficult

Re: Using Dialog in Perl

2007-03-20 Thread Chas Owens
On 3/20/07, Rodrigo Tavares <[EMAIL PROTECTED]> wrote: Hello, I made a script with shell script using dialogs. I try to use the commando Dialog in a perl script. But i can't run the dialog in perl script. snip What have you already tried to do? It should be as simple as #catch the output of

Re: executing perl script without downloading perl

2007-03-20 Thread Randal L. Schwartz
> ""Chas" == "Chas Owens" <[EMAIL PROTECTED]> writes: "Chas> Look at the Par* module That's "PAR", not "Par". Case matters. Please use the right case when talking about modules, as it will make it easier to locate and use. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1

Re: template toolkit

2007-03-20 Thread Randal L. Schwartz
> "oryann9" == oryann9 <[EMAIL PROTECTED]> writes: oryann9> All, oryann9> Is the Perl template toolkit a popular tool to use for oryann9> mid tier to senior Perl developers? I'm about as senior as they get for Perl developers {grin}, and it's clearly my templating language of choice. -- R

Increment $pid

2007-03-20 Thread Dukelow, Don
First off thanks to the several e-mail I got for my old way of thinking with the divide question I had earlier this morning. Next I'm tiring to increment a scalar variable name by one each time through a for loop. $pid1 $pid2 $pid3 And so on The code I'm running is 54 For (my $n = 1; $n <= $FOR

Re: escape character

2007-03-20 Thread yitzle
You can get the hex values from http://ascii-table.com/img/table-apple.gif You can escape them with \xdd where dd is the 0xdd hex value. eg s/[\x80-\xFF]/\?/ On 3/20/07, Beginner <[EMAIL PROTECTED]> wrote: Hi, I have a large, 1.3GB xml file that I was trying to validate. It turns out that the

Re: Dividing in Perl

2007-03-20 Thread Chas Owens
On 3/20/07, Rob Dixon <[EMAIL PROTECTED]> wrote: snip You seem very indignant that Perl is offering you a floating-point result - it started giving 24.5 right at the beginning of its life! What are these languages you have used that give only an integer result for division? I can think of none of

Re: Increment $pid

2007-03-20 Thread Chas Owens
On 3/20/07, Dukelow, Don <[EMAIL PROTECTED]> wrote: First off thanks to the several e-mail I got for my old way of thinking with the divide question I had earlier this morning. Next I'm tiring to increment a scalar variable name by one each time through a for loop. $pid1 $pid2 $pid3 And so on

Re: escape character

2007-03-20 Thread Chas Owens
On 3/20/07, Beginner <[EMAIL PROTECTED]> wrote: Hi, I have a large, 1.3GB xml file that I was trying to validate. It turns out that the file has a lot of exotic characters in it such as: é è Ä È ...etc The area of encoding and internationalisation is one I have no experience of at all and from

Re: Increment $pid

2007-03-20 Thread Tom Phoenix
On 3/20/07, Dukelow, Don <[EMAIL PROTECTED]> wrote: Next I'm tiring to increment a scalar variable name by one each time through a for loop. $pid1 $pid2 $pid3 And so on You really want to use an array. Because Perl has arrays, it neither needs nor provides a way to "increment" variable names.

Re: How do I create this string?

2007-03-20 Thread Flemming Greve Skovengaard
John W. Krahn wrote: Flemming Greve Skovengaard wrote: Travis Thornhill wrote: I need to make strings of variable length for testing inputs. The strings can contain any letter, say 'a', and I need to be able to create the string with 255, 256 or any length. Is there a quick and easy wa

Re: template toolkit

2007-03-20 Thread oryann9
> oryann9> All, > oryann9> Is the Perl template toolkit a popular tool > to use for > oryann9> mid tier to senior Perl developers? > > I'm about as senior as they get for Perl developers > {grin}, and it's clearly > my templating language of choice. > OK great, Thx for responding! I read the CP

Re: How do I create this string?

2007-03-20 Thread John W. Krahn
Flemming Greve Skovengaard wrote: > > John W. Krahn wrote: >> >> Flemming Greve Skovengaard wrote: >>> >>> $rand_string .= $letters[$index]; >> >> Or simply: >> >> $rand_string .= $letters[ rand @letters ]; > > Yes, that would save a line of code, a variable and a call to scalar(). > B

capture stdin and stderr

2007-03-20 Thread Vladimir Lemberg
Hi All, My script is calling a Win32 program with two arguments: system ( "$ARGV[0]\\program.exe", $File::Find::name, "$ARGV[0]\\source"); I want to capture STDOUT and STDERR from the program to log file system ( "$ARGV[0]\\program.exe", $File::Find::name, "$ARGV[0]\\source", 1>"$ARGV

RE: capture stdin and stderr

2007-03-20 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -Original Message- > From: Vladimir Lemberg [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 20, 2007 15:21 > To: beginners@perl.org > Subject: capture stdin and stderr > > Hi All, > > > > My script is calling a Win32 program with two arguments: > > system ( "$ARGV[0]\\program.exe"

Re: capture stdin and stderr

2007-03-20 Thread Vladimir Lemberg
Hi David, Would you please send this portion to me? Thanks, Vladimir - Original Message - From: "Wagner, David --- Senior Programmer Analyst --- WGO" <[EMAIL PROTECTED]> To: "Vladimir Lemberg" <[EMAIL PROTECTED]>; Sent: Tuesday, March 20, 2007 3:54 PM Subject: RE: capture stdin and

Re: capture stdin and stderr

2007-03-20 Thread Mumia W.
On 03/20/2007 05:21 PM, Vladimir Lemberg wrote: Hi All, My script is calling a Win32 program with two arguments: system ( "$ARGV[0]\\program.exe", $File::Find::name, "$ARGV[0]\\source"); I want to capture STDOUT and STDERR from the program to log file system ( "$ARGV[0]\\program.e

Re: tiff images

2007-03-20 Thread Chris Parker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rob Dixon wrote: > Chris Parker wrote: >> >> Hello all, >> >> How do I get text out of a tiff image? Scenario is that I have alot of >> directories named (ex. 000, 020, 000) with files inside along the same >> line ( 000.tiff, 034.tiff) and I need to

hash referrences and such

2007-03-20 Thread Mathew Snyder
I have a problem printing out a hash. This is the script I'm working with: #!/usr/bin/perl use warnings; use strict; use lib '/usr/local/rt-3.6.3/lib'; use lib '/usr/local/rt-3.6.3/local/lib'; use RT; use RT::Tickets; RT::LoadConfig(); RT::Init(); my $tix = new RT::Tickets(RT::SystemUser); $tix

Re: hash referrences and such

2007-03-20 Thread Mathew Snyder
Also, I've read the *perldsc* perldoc and it didn't help undo my confusion. If we don't protect the freedom of speech, how will we know who the assholes are? http://theillien.blogspot.com Mathew Snyder wrote: > I have a problem printing out a hash. This is the script I'm working with: > #!/usr/

Re: hash referrences and such

2007-03-20 Thread Mathew Snyder
Also, I've read the *perldsc* perldoc and it didn't help undo my confusion. Mathew Mathew Snyder wrote: > I have a problem printing out a hash. This is the script I'm working with: > #!/usr/bin/perl > > use warnings; > use strict; > use lib '/usr/local/rt-3.6.3/lib'; > use lib '/usr/local/rt-3.

Re: hash referrences and such

2007-03-20 Thread Jeff Pang
>foreach my $key (keys %$env) { >print $key . " -> " . $env{$key} . "\n"; >} Hello, For a quick look,the codes above may not work. Since $env is a hash reference,so you can't say $env{$key} to access the hash's value. It may change to: pr

Re: hash referrences and such

2007-03-20 Thread Mathew Snyder
Jeff Pang wrote: >>foreach my $key (keys %$env) { >>print $key . " -> " . $env{$key} . "\n"; >>} > > Hello, > > For a quick look,the codes above may not work. > Since $env is a hash reference,so you can't say $env{$key} to access the > hash

Re: hash referrences and such

2007-03-20 Thread Jeff Pang
> >Jeff Pang wrote: >>>foreach my $key (keys %$env) { >>>print $key . " -> " . $env{$key} . "\n"; >>>} >> >> Hello, >> >> For a quick look,the codes above may not work. >> Since $env is a hash reference,so you can't say $env{$key} to access

Re: tiff images

2007-03-20 Thread yitzle
I got this Perl script that recurses through a tree and converts images that you can make use of... http://www.ecf.utoronto.ca/~goodi/files/thumbnail_creator.pl Its under the MIT license ( http://www.ecf.utoronto.ca/~goodi/html/software.html) which basically says you can do whatever you want with

Re: hash referrences and such

2007-03-20 Thread Mathew Snyder
Jeff Pang wrote: >> Jeff Pang wrote: foreach my $key (keys %$env) { print $key . " -> " . $env{$key} . "\n"; } >>> Hello, >>> >>> For a quick look,the codes above may not work. >>> Since $env is a hash reference,so you can't say $e

Re: hash referrences and such

2007-03-20 Thread Rob Dixon
Mathew Snyder wrote: I have a problem printing out a hash. This is the script I'm working with: #!/usr/bin/perl use warnings; use strict; use lib '/usr/local/rt-3.6.3/lib'; use lib '/usr/local/rt-3.6.3/local/lib'; use RT; use RT::Tickets; RT::LoadConfig(); RT::Init(); my $tix = new RT::Ticke

Re: hash referrences and such

2007-03-20 Thread Mathew Snyder
Rob Dixon wrote: > Mathew Snyder wrote: >> >> I have a problem printing out a hash. This is the script I'm working >> with: >> #!/usr/bin/perl >> >> use warnings; >> use strict; >> use lib '/usr/local/rt-3.6.3/lib'; >> use lib '/usr/local/rt-3.6.3/local/lib'; >> use RT; >> use RT::Tickets; >> >> R

Re: hash referrences and such

2007-03-20 Thread Chas Owens
On 3/20/07, Mathew Snyder <[EMAIL PROTECTED]> wrote: snip $timeworked = $env{$transaction->Creator}{$transaction->TimeTaken}; snip From this line you can see that %env is a HoH (hash of hashes). This means that if you want to print it out you need two loops: one for the firs

Re: hash referrences and such

2007-03-20 Thread Mathew Snyder
Chas Owens wrote: > On 3/20/07, Mathew Snyder <[EMAIL PROTECTED]> wrote: > snip >> $timeworked = >> $env{$transaction->Creator}{$transaction->TimeTaken}; > snip > >> From this line you can see that %env is a HoH (hash of hashes). This > means that if you want to print it out you n