Automation

2008-06-30 Thread Ram
Hi All, I am begineer to perl language. Want help for the automation of the perl script. Is it possible to run a perl script at defined time interval without cliking over the scipt and using command prompt. I want it run without any GUI. it shoud run automatically at defined time ? Please give y

looping

2008-06-30 Thread dakin999
Hi, I am writting a perl script which: 1. Calls oracle database and produce the desired results While I am reading each row data that is fetched by select query from oracle databae, I need to read some other values from a text file. This is where I am having issues. Can some one help me in forma

Re: Automation

2008-06-30 Thread Eko Budiharto
you can use crontab in linux. On Mon, Jun 30, 2008 at 2:26 PM, Ram <[EMAIL PROTECTED]> wrote: > Hi All, > > I am begineer to perl language. Want help for the automation of the > perl script. > Is it possible to run a perl script at defined time interval without > cliking over the scipt and using

Re: looping

2008-06-30 Thread Jeff Peng
On Mon, Jun 30, 2008 at 3:24 PM, dakin999 <[EMAIL PROTECTED]> wrote: > > While I am reading each row data that is fetched by select query from > oracle databae, I need to read some other values from a text file. > This is where I am having issues. Can some one help me in formalising > the write sy

Re: Automation

2008-06-30 Thread Jeff Peng
On Mon, Jun 30, 2008 at 3:26 PM, Ram <[EMAIL PROTECTED]> wrote: > > I want it run without any GUI. it shoud run automatically at defined > time ? > Perl script is running without GUI normally unless you use TK. "crontab" or "at" commands under unix can do what you wanted. please man them for deta

Re: Automation

2008-06-30 Thread Rodrick Brown
On Mon, Jun 30, 2008 at 3:26 AM, Ram <[EMAIL PROTECTED]> wrote: > Hi All, > > I am begineer to perl language. Want help for the automation of the > perl script. > Is it possible to run a perl script at defined time interval without > cliking over the scipt and using command prompt. > > I want it r

Re: I could not do it with matlab could perl do it?

2008-06-30 Thread Amit Saxena
$str= 'GO:022 0.00312066574202497 9/2884 1/597 0.0023457 NAmitotic spindle elongation YBL084C ' (undef, undef, undef, $var1, $var2) = split (/\s*/, $str); On Wed, Jun 25, 2008 at 1:20 PM, fadlyemen <[EMAIL PROTECTED]> wrote: > Hi All > I could not do it with matlab could perl do it? >

Re: I could not do it with matlab could perl do it?

2008-06-30 Thread Aruna Goke
Amit Saxena wrote: $str= 'GO:022 0.00312066574202497 9/2884 1/597 0.0023457 NAmitotic spindle elongation YBL084C ' (undef, undef, undef, $var1, $var2) = split (/\s*/, $str); On Wed, Jun 25, 2008 at 1:20 PM, fadlyemen <[EMAIL PROTECTED]> wrote: Hi All I could not do it with matlab co

Re: How can I translate it back to @ sign.

2008-06-30 Thread Amit Saxena
Try $email =~ s/[[:cntrl:]]/@/g; instead of $email =~ s/!/@/g; Infact try this in the entire file. Note :- This is on the assumption that there are no other control characters in the input file. On Fri, Jun 27, 2008 at 2:51 AM, Aruna Goke <[EMAIL PROTECTED]> wrote: > David Romero wrote: > >>

Re: How can I translate it back to @ sign.

2008-06-30 Thread Aruna Goke
Amit Saxena wrote: Try $email =~ s/[[:cntrl:]]/@/g; instead of $email =~ s/!/@/g; Infact try this in the entire file. Note :- This is on the assumption that there are no other control characters in the input file. On Fri, Jun 27, 2008 at 2:51 AM, Aruna Goke <[EMAIL PROTECTED]

Re: I could not do it with matlab could perl do it?

2008-06-30 Thread John W. Krahn
Amit Saxena wrote: On Wed, Jun 25, 2008 at 1:20 PM, fadlyemen <[EMAIL PROTECTED]> wrote: I could not do it with matlab could perl do it? I appreciate if I have solution for this problem I try to extract two columns from a text file(8 columns) with variable number of headerlines, and variable

Re: Automation

2008-06-30 Thread Edi Stojicevic
* Eko Budiharto <[EMAIL PROTECTED]> [2008-06-30 14:57:51 +0700] wrote : [...] > you can use crontab in linux. man crontab :) Cheers, -- . ''`. (\___/) E d i S T O J I C E V I C : :' : (='.'=) http://www.debianworld.org `. `~' (")_(") GPG: 0x1237B032 `- -- To unsubscribe, e-mail: [EMA

Re: Automation

2008-06-30 Thread Ram
Thanks for your information. But here i am using Windows XP operating system Thanks, Ram On Jun 30, 12:57 pm, [EMAIL PROTECTED] (Eko Budiharto) wrote: > you can use crontab in linux. > > > > > > On Mon, Jun 30, 2008 at 2:26 PM, Ram <[EMAIL PROTECTED]> wrote: > > Hi All, > > > I am begineer to per

Re: I could not do it with matlab could perl do it?

2008-06-30 Thread John W. Krahn
John W. Krahn wrote: Amit Saxena wrote: On Wed, Jun 25, 2008 at 1:20 PM, fadlyemen <[EMAIL PROTECTED]> wrote: I could not do it with matlab could perl do it? I appreciate if I have solution for this problem I try to extract two columns from a text file(8 columns) with variable number of head

accessing imap servers using perl script - LOGIN FAILURE: access denied"

2008-06-30 Thread Aruna Goke
when i run the script below am getting "LOGIN FAILURE: access denied", if I login with Net::IMAP::Simple and my username and password is correct. However, If I run same script on my local server, its working okay. If I use the Mail::IMAPClient module to do the login. I have the error below.

RE: Automation

2008-06-30 Thread Bob McConnell
In MS-Windows, take a look at the Task Scheduler to see if it can help. Start->Programs->Accessories->System Tools->Scheduled Tasks Bob McConnell -Original Message- From: Ram [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2008 5:03 AM To: beginners@perl.org Subject: Re: Automation

Re: Automation

2008-06-30 Thread Amit Saxena
You can even refer to free task schedules for windows on the web. Have a look at http://www.snapfiles.com/freeware/ You also can go for cygwin on Windows. On Mon, Jun 30, 2008 at 8:18 PM, Bob McConnell <[EMAIL PROTECTED]> wrote: > In MS-Windows, take a look at the Task Scheduler to see if it ca

Re: How can I translate it back to @ sign.

2008-06-30 Thread Amit Saxena
Hi Aruna The solution my $invexcl = "\x{00A1}"; my $atsign = "\x{0040}"; $mailreci =~ s/(\w+)$invexcl(\w+)/$1$atsign$2/g; works fine. However that assumes that you know the control character to be substituted. If the file contains lots of control characters and if the requireme

AW: Automation

2008-06-30 Thread Tobias Eichner
> Thanks for your information. > But here i am using Windows XP operating system Then have a look at the task planner application (Start -> All programs -> Utilities -> System programs -> Task planner). It comes with Win XP and should be easy to use. Tobias. (Sorry for double-posting, but Yahoo!

AW: accessing imap servers using perl script - LOGIN FAILURE: access denied"

2008-06-30 Thread Tobias Eichner
> Connecting to imap.mail.yahoo.com port 143 > Connected to imap.mail.yahoo.com ... > my $imapserver = 'imap.mail.yahoo.com'; > my $user = 'testkingonet'; > my $pass = '123456'; May it possible that Yahoo's SMTP server detects that it is being used by a script instead of by a mail client and ther

Re: AW: accessing imap servers using perl script - LOGIN FAILURE: access denied"

2008-06-30 Thread Aruna Goke
Tobias Eichner wrote: Connecting to imap.mail.yahoo.com port 143 Connected to imap.mail.yahoo.com ... my $imapserver = 'imap.mail.yahoo.com'; my $user = 'testkingonet'; my $pass = '123456'; May it possible that Yahoo's SMTP server detects that it is being used by a script instead of by a mai

Re: How can I translate it back to @ sign.

2008-06-30 Thread Aruna Goke
Amit Saxena wrote: Hi Aruna The solution my $invexcl = "\x{00A1}"; my $atsign = "\x{0040}"; $mailreci =~ s/(\w+)$invexcl(\w+)/$1$atsign$2/g; works fine. However that assumes that you know the control character to be substituted. If the file contains lots of control characters

some question about komodo4

2008-06-30 Thread wise
i use komodo4 for perl develop. but it seems that it can't support code auto-complete. for example ,i input "opendir" ,it can't show the dialog about auto- complete. how can i find a perl extension for komodo? thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Re: Check if directory is empty on Win32

2008-06-30 Thread Leonid L
On Jun 27, 1:52 pm, [EMAIL PROTECTED] (Paul Lalli) wrote: > On Jun 26, 5:50 pm, [EMAIL PROTECTED] (Leonid L) wrote: > > > Many of the proposed solutions I've found on Google do not work for > > me, perhaps because they assume Unix/Linux host. > > Or, perhaps because you're doing something wrong?

Re: show only numbers before, within or after the text

2008-06-30 Thread Brad Baxter
On Jun 28, 11:18 am, [EMAIL PROTECTED] (Luca Villa) wrote: > I have a long text file like this: > > 324yellow > 34house > black > 54532 > 15m21red56 > 44dfdsf8sfd23 > > How can I obtain (Perl - Windows/commandline/singleline) the > following? > > 1) only the numbers at the beginning before some alp

AW: some question about komodo4

2008-06-30 Thread Tobias Eichner
> i use komodo4 for perl develop. > > but it seems that it can't support code auto-complete. > > for example ,i input "opendir" ,it can't show the dialog about auto- > complete. > > how can i find a perl extension for komodo? I'm also using it and auto-complete works fine... have you checked t

print reference

2008-06-30 Thread onlineviewer
Hello All, Can someone tell me the proper syntax to print out the value in a reference? Thank you.,, my $string = ''; open my $scalar_fh, '>>', \$string; my $log_message = "here is my string..."; print $scalar_fh $log_message; foreach my $fh ($scalar_fh ) { print "$fh"; } -- To unsu

AW: AW: accessing imap servers using perl script - LOGIN FAILURE: access denied"

2008-06-30 Thread Tobias Eichner
> what is smtp from what i raised so far? > > I need an imap access to the server not smtp. Sorry, I meant IMAP, my mistake. Anyway, solution could be the same... to exclude problems with your source code, try an alternative server that is working for sure. Tobias. > > Thanks > > Goksie

Re: Automation

2008-06-30 Thread obdulio santana
In windows there is a freeware, it's a clon for windows I'm using it for several months and works fine. nncronlt111.exe it's small and easy to use. I found in ten minutes google searching. if you want it, tell me how can I send to you. HTH 2008/6/30 Tobias Eichner <[EMAIL PROTECTED]>: >

Re: print reference

2008-06-30 Thread John W. Krahn
onlineviewer wrote: Hello All, Hello, Can someone tell me the proper syntax to print out the value in a reference? I assume you mean how to dereference a reference? perldoc perlref Thank you.,, my $string = ''; open my $scalar_fh, '>>', \$string; my $log_message = "here is my string..

Re: print reference

2008-06-30 Thread Rob Dixon
onlineviewer wrote: > > Can someone tell me the proper syntax to print out the value in a > reference? > Thank you.,, I'm not sure what you mean. Look: > my $string = ''; > open my $scalar_fh, '>>', \$string; So you have opened a file handle to append to the scalar $string. > my $log_message =

substitution

2008-06-30 Thread epanda
Hi, I have to do a substitution of a pattern in a text file, this pattern is a key of a hash table previously set. so I want to replace my pattern by the corresponding value of the key in the hash table ex : file : n1 n22 hash : n1 => wordA n2 => wordB n22 => wo

Re: Check if directory is empty on Win32

2008-06-30 Thread Rob Dixon
Leonid L wrote: > On Jun 27, 1:52 pm, [EMAIL PROTECTED] (Paul Lalli) wrote: >> On Jun 26, 5:50 pm, [EMAIL PROTECTED] (Leonid L) wrote: >> >>> Many of the proposed solutions I've found on Google do not work for >>> me, perhaps because they assume Unix/Linux host. >> Or, perhaps because you're doing

Array problem

2008-06-30 Thread Beyza
Hi, I would like to know how to insert escape character in front of special characters in an array. I have an array which has strings like; John's House Bla bla; etc, When I use them in an SQL query, perl gives an error. So, I need to put escape character for every special character. Is there a

Re: AW: AW: accessing imap servers using perl script - LOGIN FAILURE: access denied"

2008-06-30 Thread Aruna Goke
Tobias Eichner wrote: what is smtp from what i raised so far? I need an imap access to the server not smtp. Sorry, I meant IMAP, my mistake. Anyway, solution could be the same... to exclude problems with your source code, try an alternative server that is working for sure. Tobias. Thank

Re: about perl module uninstallation

2008-06-30 Thread Telemachus
On Jun 22, 3:32 pm, [EMAIL PROTECTED] (Randal L. Schwartz) wrote: > Note: the CPAN Shell and the CPAN-PLUS Shell are not package managers, and > have no uninstall capability. Cpan-plus can uninstall, but only if you installed the module with cpan-plus originally. I thought that was one of the main

Re: Array problem

2008-06-30 Thread Aruna Goke
Beyza wrote: Hi, I would like to know how to insert escape character in front of special characters in an array. I have an array which has strings like; John's House Bla bla; etc, When I use them in an SQL query, perl gives an error. So, I need to put escape character for every special charac

regexp behin assertions ?

2008-06-30 Thread epanda
Hi, I would like to identify in a pattern a number wich is not preceded by another numbera word or a ';' followed by ;number ~ ;\d+ I have tried this s/\d+(?http://learn.perl.org/

Perl Script runs to slow

2008-06-30 Thread Cheez
Howdy, scripting with perl is a hobby and not a vocation so i apologize in advance for rough looking code. I have a very large list of 16-letter words called "hashsequence16.txt". This file is 203MB in size. I have a large list of data called "newrawdata.txt". This file is 95MB. For each 16-le

Re: Array problem

2008-06-30 Thread Rob Dixon
Beyza wrote: > Hi, > > I would like to know how to insert escape character in front of > special characters in an array. > > I have an array which has strings like; > > John's House > Bla bla; > etc, > > When I use them in an SQL query, perl gives an error. So, I need to > put escape character

Re: regexp behin assertions ?

2008-06-30 Thread Gunnar Hjalmarsson
epanda wrote: I would like to identify in a pattern a number wich is not preceded by another numbera word or a ';' followed by ;number ~ ;\d+ I have tried this s/\d+(? You probably want to reverse the order. /(?http://www.gunnar.cc/cgi-bin/contact.pl -

Re: Array problem

2008-06-30 Thread Gunnar Hjalmarsson
Beyza wrote: I have an array which has strings like; John's House Bla bla; etc, When I use them in an SQL query, perl gives an error. So, I need to put escape character for every special character. Is there any quick way to do it? perldoc -f quotemeta -- Gunnar Hjalmarsson Email: http://

Re: substitution

2008-06-30 Thread Rob Dixon
epanda wrote: > > I have to do a substitution of a pattern in a text file, > > this pattern is a key of a hash table previously set. > > > so I want to replace my pattern by the corresponding value of the key > in the hash table > > > ex : > > file : n1 n22 > > hash : n1 => wordA >

Re: Perl Script runs to slow

2008-06-30 Thread John W. Krahn
Cheez wrote: Howdy, Hello, scripting with perl is a hobby and not a vocation so i apologize in advance for rough looking code. I have a very large list of 16-letter words called "hashsequence16.txt". This file is 203MB in size. I have a large list of data called "newrawdata.txt". This fil

Re: Perl Script runs to slow

2008-06-30 Thread Rob Dixon
Cheez wrote: > Howdy, scripting with perl is a hobby and not a vocation so i > apologize in advance for rough looking code. > > I have a very large list of 16-letter words called > "hashsequence16.txt". This file is 203MB in size. > > I have a large list of data called "newrawdata.txt". This fi

Re: looping

2008-06-30 Thread Jeff Peng
On Tue, Jul 1, 2008 at 11:04 AM, Akhil Srivastava <[EMAIL PROTECTED]> wrote: > Still I am not able to make it work. The problem is to read a file loop from > inside a top loop and exit the file loop when the top loop finishes. You maybe should post the code piece to the list, we may have the c

Re: substitution

2008-06-30 Thread Brad Baxter
On Jun 30, 4:20 pm, [EMAIL PROTECTED] (Epanda) wrote: > Hi, > > I have to do a substitution of a pattern in a text file, So you know about perl -i, right? > > this pattern is a key of a hash table previously set. > > so I want to replace my pattern by the corresponding value of the key > in the h

Re: some question about komodo4

2008-06-30 Thread wise
On Jul 1, 5:12 am, [EMAIL PROTECTED] (Tobias Eichner) wrote: > > i use komodo4 for perl develop. > > > but it seems that  it can't support code auto-complete. > > > for example ,i input "opendir" ,it can't show the dialog about auto- > > complete. > > > how can i find a perl extension forkomodo? >

Re: looping

2008-06-30 Thread Gunnar Hjalmarsson
Jeff Peng wrote: On Tue, Jul 1, 2008 at 11:04 AM, Akhil Srivastava <[EMAIL PROTECTED]> wrote: Still I am not able to make it work. The problem is to read a file loop from inside a top loop and exit the file loop when the top loop finishes. You maybe should post the code piece to the list,

Re: Perl Script runs to slow

2008-06-30 Thread icarus
On Jun 30, 8:01 am, [EMAIL PROTECTED] (Cheez) wrote: > Howdy, scripting with perl is a hobby and not a vocation so i > apologize in advance for rough looking code. > > I have a very large list of 16-letter words called > "hashsequence16.txt". This file is 203MB in size. > > I have a large list of