Removing decimal points

2007-06-08 Thread ash
Hello there! I need to remove decimal points from numbers. For eg 1.23 or 1.77 would be just 1. Any suggestion is appreciated. Thank you. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Reading formula from Excel sheet

2007-06-08 Thread Tom Phoenix
On 6/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Is there a way to read to read formula from MS Excel sheet without using OLE. Have you looked on CPAN? http://search.cpan.org/ http://search.cpan.org/search?query=Excel Hope this helps! --Tom Phoenix Stonehenge Perl Training --

Re: Usenet messages are appearing on beginners@perl.org [perl #43141]

2007-06-08 Thread Mumia W..
On 06/08/2007 07:57 AM, Peter Scott wrote: On Wed, 06 Jun 2007 19:54:16 -0500, Mumia W. wrote: Are you sure that's not nntp.perl.org? Thunderbird says it can't connect to news.perl.org, and nntp.perl.org does not seem to allow posting. You're right. I'm always making that mistake. No probl

Reading formula from Excel sheet

2007-06-08 Thread ashishrai
Hello there! Is there a way to read to read formula from MS Excel sheet without using OLE. I can use the OLE but annoying pop-ups for updating link while opening and saving the file while quitting keeps coming. I would appreciate any kind of solution. Thank you in advance. -- To unsubscribe, e-

File::Tail + JavaScript (XmlHttpRequest)

2007-06-08 Thread Steve Finkelstein
TGIF All! I hope my thread is relevant and not off-topic here. If it is, please ignore it and I apologize for taking up your time. I'm currently looking to implement a web function and an OS/X widget utilizing JavaScript's XmlHttpRequest (aka asynchronous javascript, aka AJAX). I thought at first

RE: Run a block of sql commands using 'here document'

2007-06-08 Thread Lakshmi Sailaja
Cool...This worked!!! Thanks a zillion for the response!! Thanks & Regards, Lakshmi 952-833-1220 -Original Message- From: Adriano Ferreira [mailto:[EMAIL PROTECTED] Sent: Friday, June 08, 2007 11:56 AM To: beginners@perl.org Subject: Re: Run a block of sql commands using 'here document'

SNMP translate

2007-06-08 Thread Stanislav Doroshok
hi all I need translate snmp oid - analog of snmptranslate utility. this method in SNMP module, but i use Net::SNMP... which module better for use snmp. thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Using SOAP::Lite

2007-06-08 Thread Mike Blezien
Hello, I appologize for the long posting, but was hoping to get some feedback as to what we are doing wrong. We are trying to integrate with a XML Gateway that uses SOAP. This our first time at trying to use SOAP w/Perl and not having alot of luck. Below is the code snip and Request/Response

Re: Run a block of sql commands using 'here document'

2007-06-08 Thread Adriano Ferreira
On 6/8/07, Martin Barth <[EMAIL PROTECTED]> wrote: Hi, > I know that using 'Here Documents', we can output multiple lines. But is it > possible to run a couple of commands? > > $s = qx [sqlplus user/[EMAIL PROTECTED] < select 2 from DUAL; > exit > ENDOFSQL]; what do you think about that: open(

Re: Run a block of sql commands using 'here document'

2007-06-08 Thread Martin Barth
Hi, > I know that using 'Here Documents', we can output multiple lines. But is it > possible to run a couple of commands? > > $s = qx [sqlplus user/[EMAIL PROTECTED] < select 2 from DUAL; > exit > ENDOFSQL]; what do you think about that: open(DBI, "| sqlplus user/[EMAIL PROTECTED]"); then print

Run a block of sql commands using 'here document'

2007-06-08 Thread Lakshmi Sailaja
Hi, I know that using 'Here Documents', we can output multiple lines. But is it possible to run a couple of commands? $s = qx [sqlplus user/[EMAIL PROTECTED]

Re: Deploy Perl script on Windows

2007-06-08 Thread Chas Owens
On 6/8/07, Octavian Rasnita <[EMAIL PROTECTED]> wrote: Search for PAR on search.cpan.org. Having just done this, I can tell you that the PAR shipped by ActiveState is not up to par. You will need to install PAR and PAR::Packer manually. I don't believe there are any XS based modules, so you s

Re: new vs ->new

2007-06-08 Thread Robert Hicks
Chas Owens wrote: > On 6/8/07, Robert Hicks <[EMAIL PROTECTED]> wrote: >> I see some modules that call "new" like: >> >> my $test = new Some::Module; >> >> and some like: >> >> my $test = Some::Module->new; >> >> Is there a difference and what is the "recommended" way? >> >> Robert > > "new Object

Re: Deploy Perl script on Windows

2007-06-08 Thread Octavian Rasnita
Search for PAR on search.cpan.org. Octavian - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Thursday, June 07, 2007 11:37 PM Subject: Deploy Perl script on Windows Hi, I'm currently learning Perl on win32 with ActiveState's ActivePerl 5.8.8 and I was wondering what is nee

Re: Ram disk filling up - File::COPY

2007-06-08 Thread Always Learning Perl
* Tom Phoenix <[EMAIL PROTECTED]> [2007-06-07 21:09]: > On 6/7/07, Perl WANNABE <[EMAIL PROTECTED]> wrote: > > >I'm trying to copy a couple of DBM files from a disk to a RAM disk, > >one of the files is 500M the other quite small. > > Some DBM implementations, if the filesystem supports doing so,

Deploy Perl script on Windows

2007-06-08 Thread yannickg
Hi, I'm currently learning Perl on win32 with ActiveState's ActivePerl 5.8.8 and I was wondering what is needed to run one of my script on another PC that does not have ActivePerl ? I did some googling and found Perl2EXE but since it's not free I want to know if there is another solution besides

Re: new vs ->new

2007-06-08 Thread Adriano Ferreira
On 6/8/07, Robert Hicks <[EMAIL PROTECTED]> wrote: I see some modules that call "new" like: my $test = new Some::Module; and some like: my $test = Some::Module->new; Is there a difference and what is the "recommended" way? Definitely go with my $test = Some::Module->new; The indirect obje

Re: I can't write the apropriate content to the file.

2007-06-08 Thread Martin Barth
try to change the shebang to #!/bin/sh first of all: you shouldn't use the backticks `` if you dont want to have the output of the program. 2nd: don't use touch, chmod, etc... there are many ways to do it much faster in perl. everytime you do somethink like that you invoke a fork() and start a ne

I can't write the apropriate content to the file.

2007-06-08 Thread herostar1981
Hi everybody, I have a perl script, which can write some message to a new file, looks like the following. my $cmd="touch /data3/OGCserver-xu/htdocs/tmp/$time".".kml"; `$cmd`;#`touch ../../htdocs/tmp/xuhuanxiang.kml`; `chmod 777 /data3/OGCserver-xu/htdocs/tmp/$time.kml`; open (XHX,">","/data3/OG

Re: new vs ->new

2007-06-08 Thread Chas Owens
On 6/8/07, Robert Hicks <[EMAIL PROTECTED]> wrote: I see some modules that call "new" like: my $test = new Some::Module; and some like: my $test = Some::Module->new; Is there a difference and what is the "recommended" way? Robert "new Object" uses indirect invocation*. Some people feel it

new vs ->new

2007-06-08 Thread Robert Hicks
I see some modules that call "new" like: my $test = new Some::Module; and some like: my $test = Some::Module->new; Is there a difference and what is the "recommended" way? Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl

Re: PERL arrays

2007-06-08 Thread Prabu Ayyappan
you can use the Data::Dumper module to see the four dimension array values. use Data::Dumper; my @a = ( [ [ [ "0,0,0,0", "0,0,0,1" ], [ "0,0,1,0", "0,0,1,1" ], [ "0,0,2,0", "0,0,2,1" ],

Re: snmp translate

2007-06-08 Thread Jeff Pang
Doroshok Stanislav 写道: п'ятниця 08 червень 2007 15:31, Jeff Pang написав: Doroshok Stanislav 写道: hi all I need snmptranslate analog in perl i use Net::SNMP module but can't find this method. Try cpan: http://search.cpan.org/~gbarr/libnet-1.21/Net/SMTP.pm SMTP? http://search.cpan.org/~dt

Re: snmp translate

2007-06-08 Thread Eugene Kosov
Doroshok Stanislav wrote: п'ятниця 08 червень 2007 16:02, Eugene Kosov написав: Doroshok Stanislav wrote: п'ятниця 08 червень 2007 15:31, Jeff Pang написав: Doroshok Stanislav 写道: hi all I need snmptranslate analog in perl i use Net::SNMP module but can't find this method. Try cpan: http:

Re: snmp translate

2007-06-08 Thread Doroshok Stanislav
п'ятниця 08 червень 2007 16:02, Eugene Kosov написав: > Doroshok Stanislav wrote: > > п'ятниця 08 червень 2007 15:31, Jeff Pang написав: > >> Doroshok Stanislav 写道: > >>> hi all > >>> I need snmptranslate analog in perl > >>> i use Net::SNMP module but can't find this method. > >> > >> Try cpan: >

Re: snmp translate

2007-06-08 Thread Eugene Kosov
Doroshok Stanislav wrote: п'ятниця 08 червень 2007 15:31, Jeff Pang написав: Doroshok Stanislav 写道: hi all I need snmptranslate analog in perl i use Net::SNMP module but can't find this method. Try cpan: http://search.cpan.org/~gbarr/libnet-1.21/Net/SMTP.pm SMTP? SNMP - Simple Network M

Re: Usenet messages are appearing on beginners@perl.org [perl #43141]

2007-06-08 Thread Peter Scott
On Wed, 06 Jun 2007 19:54:16 -0500, Mumia W. wrote: > Are you sure that's not nntp.perl.org? Thunderbird says it can't connect > to news.perl.org, and nntp.perl.org does not seem to allow posting. You're right. I'm always making that mistake. -- Peter Scott http://www.perlmedic.com/ http://www

Re: snmp translate

2007-06-08 Thread Doroshok Stanislav
п'ятниця 08 червень 2007 15:31, Jeff Pang написав: > Doroshok Stanislav 写道: > > hi all > > I need snmptranslate analog in perl > > i use Net::SNMP module but can't find this method. > > Try cpan: > http://search.cpan.org/~gbarr/libnet-1.21/Net/SMTP.pm SMTP?

Re: Declaring constants in perl

2007-06-08 Thread Paul Lalli
On Jun 8, 7:33 am, [EMAIL PROTECTED] (Alok Nath) wrote: > What is the convention used to declare constants in perl ? > In C we declare constant type in Capital letters , not sure > how its in perl. There is a 'constant' pragma in Perl that you can use: use constant PI => 3.

Re: snmp translate

2007-06-08 Thread Jeff Pang
Doroshok Stanislav 写道: hi all I need snmptranslate analog in perl i use Net::SNMP module but can't find this method. Try cpan: http://search.cpan.org/~gbarr/libnet-1.21/Net/SMTP.pm -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.p

Re: Declaring constants in perl

2007-06-08 Thread Xavier Noria
On Jun 8, 2007, at 1:33 PM, Nath, Alok (STSD) wrote: Hi, What is the convention used to declare constants in perl ? In C we declare constant type in Capital letters , not sure how its in perl. Same convention: use constant FOO => 3; -- fxn -- To unsubscribe, e-m

snmp translate

2007-06-08 Thread Doroshok Stanislav
hi all I need snmptranslate analog in perl i use Net::SNMP module but can't find this method. which module better for SNMP? thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Declaring constants in perl

2007-06-08 Thread Nath, Alok (STSD)
Hi, What is the convention used to declare constants in perl ? In C we declare constant type in Capital letters , not sure how its in perl. Regards, Alok -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Running perl program at startup

2007-06-08 Thread Martin Barth
Hi, in that case you need to start your deamon by configuring /etc/inittab, don't you? 6:23:respawn:/sbin/getty 38400 tty6 HTH On Fri, 8 Jun 2007 03:16:23 -0400 "Chas Owens" <[EMAIL PROTECTED]> wrote: > On 6/8/07, Juan Pablo Feria Gomez <[EMAIL PROTECTED]> wrote: > > Hi all, I need to star

Re: Running perl program at startup

2007-06-08 Thread Chas Owens
On 6/8/07, Juan Pablo Feria Gomez <[EMAIL PROTECTED]> wrote: Hi all, I need to start a perl daemon at an BSD's startup (rc.local, not interactive), i found the way to run the script as a daemon, but i want: a) Send all the output to an tty , say, go to tty6 (ctrl+alt+F6) and see the output of my