Re: Benchmark for Scala, Ruby and Perl

2022-01-16 Thread Alex Mestiashvili
significant IO operations either, once you go through the file, the hashes are in memory. The difference could appear due to the interpreter startup times, no idea about scala, but it could be that ruby loads some modules when starting, which adds-up to the running time. Best, Alex -- To unsubscribe

Re: ssh::command

2018-02-19 Thread Alex Mestiashvili
On 02/14/2018 08:48 AM, Lancelot Mak wrote: > thanks for the help. > it works. > > On 14 February 2018 at 13:33, Илья Рассадин > wrote: > > Try to look at Net::SSH::Any https://metacpan.org/pod/Net::SSH::Any > > > >

Re: perl for machine learning

2017-02-09 Thread Alex
Maybe also have a look here: http://perl4science.github.io/software/ Not sure about "popular", but at least there is a short list. Best regards, Alex > Am 08.02.2017 um 02:47 schrieb community tech : > > Is there a popular perl library/framework for machine learning? > > Thanks.

Where to put xs files?

2016-06-08 Thread Alex Becker
file CaptureRelease.pm to lib/Tk/CaptureRelease.pm, would I have to move the xs file, too? Best regards, Alex

Best way to indicate module author tests?

2015-08-05 Thread Alex Becker
iable name. Module::Starter introduces RELEASE_TESTING. Is this the standard way? I know, Perl is TIMTOWTDI and bla bla bla. But I don't want to reinvent the wheel. I want to create modules that are reliable and just work(TM) for others. Best regards, Alex

Re: To use signatures or not to use?

2015-07-23 Thread Alex Becker
). Hopefully, signatures will be non-experimental soon. I'm really looking forward to get rid of boilerplate code. Best regards, Alex 2015-07-23 12:04 GMT+02:00 Andrew Solomon : > I think that if you're considering using signatures make sure you read > this

To use signatures or not to use?

2015-07-22 Thread Alex Becker
ng to stay? I'm not looking for the standard "do if you want to do it because TIMTOWTDI" answer, it will not help me. I'm looking for rumors, or eventually an assessment from the people who did the feature? Best regards, Alex

Re: Can u suggest me the best ide for perl

2015-05-21 Thread Alex Becker
The initial question was "Other than padre..". I never got Padre to work. My favorite is Komodo IDE. NB: Komodo Edit (the free edition with less features) is open source now, it' on Github: https://github.com/Komodo/KomodoEdit 2015-05-21 13:24 GMT+02:00 Shawn H Corey : > On Thu, 21 May 2015 10:

Re: Inhomogeneous data in a database

2015-04-15 Thread Alex Becker
e navigation table? Can I define the following statement as a constraint? "If there exists a pair of in the view v_navigation, it is OK to have the record in the navigation table" Sorry if the question is too complicated. Please feel free to tell me. I will then try to rephrase. Best r

Re: Inhomogeneous data in a database

2015-04-10 Thread Alex Becker
e right thing to do (and no, I don't really want to start a discussion about TIMTOWTDI, Perl's philosophy, why Pyhton wuld be better for this approach, or what people think about this particular sentence in general). Maybe I can rephrase my inital questions: > Is there a standard a

Should I add ExtUtils::MakeMaker as prerequisite to Makefile?

2015-02-27 Thread Alex Becker
sion is greater than X then add Y to Makefile.PL' stuff. So, would it work? Does it make sense? Thanks in advance for the answers and best regards, Alex

Re: Where to put example script of my CPAN distribution

2014-10-09 Thread Alex
e in the POD's "SYNOPSYS" section of your module > as you can find on most of Perl modules (check a random CPAN module to see). > > See : > * http://juerd.nl/site.plp/perlpodtut > * http://perldoc.perl.org/perlpodstyle.html > > > ~$&bast1 > &

Where to put example script of my CPAN distribution

2014-10-09 Thread Alex Becker
I know of TIMTOWTDI but I don't care, I just want to deliver something that people can easily use. Thanks in advance & kind regards, Alex

Why to use a lib folder for a CPAN module

2014-10-08 Thread Alex Becker
some older modules not having a lib folder. So, I personally like the lib folder because it's easy to identify where the module's code resides. But, is there any other advantage? Or to ask in another fashion: is it recommended to use a lib folder and if yes, why? Kind regards, Alex

Re: About staying brushed up on perl

2014-07-26 Thread Alex Mestiashvili
would be well received on this end. I would suggest to create a github or similar service account and put some important code snippets there. Document them, especially tricky parts. Regards, Alex -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Fail to match mixed quote pattern

2014-03-14 Thread Alex Chiang
Lovely, it works. I didn't know how to describe this, now I knew there is a global mode XD Thanks. --- Regards ! Alex Chiang

Fail to match mixed quote pattern

2014-03-14 Thread Alex Chiang
leaving 'let us go' unmatched. I don't know how to describe this problem, Can anyone help me with this ? Thanks in advance. --- Regards ! Alex Chiang

Re: Search one character against one string

2014-03-13 Thread Alex Chiang
Thanks for your reply. I know the built-in index function, but I just can't figure out why it gives me the answer I don't expect :D --- Regards ! Alex Chiang

Re: Build Perl keyword hash

2014-03-13 Thread Alex Chiang
Yes. Thanks for your help. How do you copy and paste from browser ? When I tried this, all I got is hyperlink and metadata. --- Regards ! Alex Chiang

Build Perl keyword hash

2014-03-13 Thread Alex Chiang
nto list, then creating hash for parsing. --- Regards ! Alex Chiang

Re: Search one character against one string

2014-03-13 Thread Alex Chiang
Thanks all, and thanks Nathan for your detailed explanation. Now I know the list got flattened before passing into subroutine. Cheers. --- Regards ! Alex Chiang

Search one character against one string

2014-03-12 Thread Alex Chiang
e times, meaning I've to convert string into array every time, pain in the ass... --- Regards ! Alex Chiang

Re: Delete key-value pair in perl

2014-03-09 Thread Alex Chiang
Hi Shlomi, Thanks for reminding this beginner's trap. --- Regards ! Alex Chiang

Delete key-value pair in perl

2014-03-08 Thread Alex Chiang
the original dict. However, when I try to remove the if condition, simply put delete $employ_list{"e10220"} there, it works. I can't figure out why, also, the line #49 doesn't work either until I print the dict outside the while loop, I would expect the print "after" should be empty. --- Regards ! Alex Chiang --- Regards ! Alex Chiang

Re: Buildiing mod_perl on 64 bit perl on Solaris 10

2013-05-28 Thread Alex Mestiashvili
jmp > -Uinstallusrbinperl -Ulocincpth= -Uloclibpth= -Duse64bitall > -Ud_strerror_r -Ud_signbit -Duselargefiles -Dprefix=/usr/perl5/5.18.0 > > Please help, I need this fixed asap. > > Thanks in advance. Hi, why not use opencsw.org for solaris packages? it saves a lot of ti

Re: Cookies - Basic Perl

2012-12-11 Thread Alex Ahn
Thank you all for the input on how to resolve to problem with the second loop. Alex On 12/11/2012 5:00 PM, Shawn H Corey wrote: On Tue, 11 Dec 2012 16:47:15 -0500 Alex Ahn wrote: I have a problem with a certain script, as a beginner. #!/usr/bin/perl -w # # Cookie Monster $cookie

Cookies - Basic Perl

2012-12-11 Thread Alex Ahn
I have a problem with a certain script, as a beginner. #!/usr/bin/perl -w # # Cookie Monster $cookie = ""; while ( $cookie ne 'cookie') { print 'Give me a cookie: '; chomp($cookie = ); } print "Mmmm. Cookie.\n"; while ( $cookie ne 'cookie') { print 'Give me another cookie: '; chomp($cookie =

Re: Appending extra characters to file name

2012-01-06 Thread Alex Ardin
Many good points, chomp resolved the issue but thanks for the information in both posts, very helpful, so many things to learn yet. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Appending extra characters to file name

2012-01-05 Thread Alex Ardin
ename failed\n"; } close(OF); close(NF); } I also thought it had been the result of my closing my files after I attempted the move, but I get the same results if I move these lines: close(OF); close(NF); above this line: print("\nNow mv file\n"); so that the files are closed and then attempt to move them. Is it possible to understand how to work around this? Alex -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

RE: one question about an exercise in 'Learning Perl 4th Edition'

2011-02-11 Thread Alex Wang02
Hi, I just found the solution and reason in Chapter 8. Thanks & Regards, Alex Wang -Original Message- From: Alex Wang02 Sent: Saturday, February 12, 2011 12:42 PM To: beginners@perl.org Subject: one question about an exercise in 'Learning Perl 4th Edition' Hi, I hav

one question about an exercise in 'Learning Perl 4th Edition'

2011-02-11 Thread Alex Wang02
if (/[A-Z][a-z]+/ && /^[.]/) But it didn`t work, can someone explain why? Thanks a lot. Alex Wang CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you ar

RE: Re[2]: about return

2011-02-10 Thread Alex Wang02
me if I were wrong. Just refer to chapter 3.7 in "Learning Perl" 4th Edition. Thanks & Regards, Alex Wang -Original Message- From: terry peng [mailto:terry.p...@mail.ru] Sent: Thursday, February 10, 2011 3:14 PM To: beginners Subject: Re[2]: about return Wed, 9 F

web scraping

2008-04-28 Thread Alex Goor
Does anyone know where I could get an example program that does this kind of thing to teach myself the concepts? Thanks very much, - Alex -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

simple question

2008-04-27 Thread Alex Goor
i have a data set of stock orders and i want to count the number of unique stock symbols in the set. i have turned the data set into an array and based on the message spec, i can identify the stock symbols. but i don't know how to make sure i'm only counting unique ones. i had thought to do

Re: How can i make a perl program lauch another perl program that takes options

2007-06-29 Thread Alex Jamestin
blew up: $!"; And the o/p got is - vp_all: USAGE: perl vplan_all.pl perl blew up: No such file or directory at test2.pl line 8. Interesting thing is, while perl locates the second perl prog successfully - it still calls die after that. Anyways, gotta leave for friday (I'm on the

Re: How can i make a perl program lauch another perl program that takes options

2007-06-29 Thread Alex Jamestin
Bug begets bug :) Anyways, thx again for helping out Alex On 6/29/07, Chas Owens <[EMAIL PROTECTED]> wrote: On 6/29/07, Alex Jamestin <[EMAIL PROTECTED]> wrote: > Sorry forgot about that.. I'm running it on FreeBSD/i386 accessed via. > a terminal prog. I have a FreeBSD box handy,

Re: How can i make a perl program lauch another perl program that takes options

2007-06-29 Thread Alex Jamestin
Okay, system returns a 0 if it executes successfully. So then, die is called only if system returns anything other than a 0. And in the old code system would return a 0 after calling perl. This would short-circuit and call die. Makes sense :) Will try out and reply. Thx, Alex On 6/29/07

Re: How can i make a perl program lauch another perl program that takes options

2007-06-29 Thread Alex Jamestin
Well, i tried both the options - system("perl vplan_all.pl", "5.6", "24.0") == 0 or die "blah"; or system( "perl", "vplan_all.pl", "5.6", "24.0") == 0 or die "blah"; I think when perl -> shell -> perl . Here perl doesn't seem to understand that vplan_all.pl is the script name and

Returning Values fr nested FOR w/o RETURNing fr sub

2006-07-30 Thread Alex Gill
return() in the for loop, but that exits the bases() too soon. Some solutions: (1) put the print within the bases(). (2) push() into an array and then iterate over for printing. --- These work but I am wondering if there is a way to return() a list from the for-loop? TIA, Alex Gill -- T

subroutine reference for a class member

2006-06-19 Thread Alex
Hello, Maybe someone could please tell me how can I acquire a subroutine reference for a class member? Basically I need this reference to pass as a parameter for curl's setopt function: $this->{curl}->setopt(CURLOPT_HEADERFUNCTION, reference to header_function); class al

need help with a regular expression

2006-01-30 Thread Alex Walker
ening tag at the front and then just never closes. I'm a little stuck on this one, any help would be much appreciated. Thanks, Alex - Bring words and photos together (easily) with PhotoMail - it's free and works with your Yahoo! Mail.

Re: Matching the first string

2006-01-12 Thread alex litvak
10x you Joan And Timothy. about the regular expressions --> im reading now the Perl Programming book, and i red about regular expressions, but i have to get used to this language and its abilities -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Matching the first string

2006-01-12 Thread alex litvak
ter in the name (in this case it was E), i need just the expression that does it. Thanks & Regards Alex -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: perl regexp need help!

2005-08-11 Thread Alex
> Also, correction posted by Jay, is not applicabile because we have more > lines containing "Virus" word and only one should be counted (***** Virus). > > Alex And for posterity, i am answering myself: elsif($prog eq 'hook') { # Vexira an

Re: perl regexp need help!

2005-08-10 Thread Alex
On Wednesday 10 August 2005 04:36, you wrote: > On 8/9/05, Wagner, David --- Senior Programmer Analyst --- WGO > > <[EMAIL PROTECTED]> wrote: > > Alex wrote: > > > Hello everyone, > > > > > > I need some help to fix a problem in mailgraph.pl scrip

perl regexp need help!

2005-08-09 Thread Alex
... elsif($prog eq 'hook') { # Vexira antivirus if($text =~ /^\([\*]+\) Virus\b/) { event($time, 'virus'); } } Is my new code correct? If no, how should it be? Regards, Alex -- To unsubscribe, e-ma

ActiveState Comodo is not stopped on beak points

2005-05-07 Thread Alex Lisbaron
Hello All I use ActiveState Comodo 3.1 Professional. Till now everything worked ok, but now I have a problem: debugger (F5) is not stopped on break points! What I do wrong? Thank you in advance Alex -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

DFA::Simple,State Machine Implementation

2005-04-28 Thread Alex Lisbaron
Hi All, I have created Final State Machine , using DFA::Sample. My quest` is: how I can use MORE than one instances of my FSM simultaneously. something like this: I have: my $fsm = new DFA::Simple [EMAIL PROTECTED]; I need my $fsm[0] = new DFA::Simple [EMAIL PROTECTED]; # FIRST INSTANC

DFA::Simple

2005-04-25 Thread Alex Lisbaron
Hi All, I need to create fsa (final state machine). I want to do it using DFA::Simple. How can I install this package on WIN2K? Thank you in advance A. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

using Perl to insert footer into PDF files?

2005-03-29 Thread Alex Walker
ng with the PDF::API2 module, which looks promising but which appears to be a little slim on documentation. Can someone point me in the right direction on this? Thanks a lot, Alex __ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced sea

h2xs directory structure in perl-5.8.x?

2004-12-29 Thread Alex Daniloff
ng on with h2xs? Thank you in advance for any clues or practical help. Alex -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Perl, Unicode, and Hashes

2004-08-24 Thread Alex Lawson
hello, I am writing a flash card program with PERL, and I have two problems: How do I read from a file in the format: [][][] \t pronunciation [][][] \t pronunciation the [][][] basically represents any number of Unicode characters [in my case, Chinese], and the pronunciation is in re

use lib(''); Apache httpd.conf

2004-06-08 Thread Alex Newby
HTML::Mason::ApacheHandler will load? What is the equivalent for the httpd.conf of use lib('/my/lib'); ? Thanks is advance. ----- Sincerely, Alex Newby E-mail: [EMAIL PROTECTED] Website: http://www.alexnewby.com -- To unsubscribe, e-mail: [EMAIL PROTECTED]

trouble with a regular expression

2004-06-02 Thread Alex
place "changeme" with $thename - the output file I get has a "." character instead of the value of the variable. Can anyone see what I've got wrong? The offending piece is preceeded by the comment "I have no idea why this doesn't work". Thanks a lot, Alex ***

Show/download file from a non public folder

2004-03-25 Thread Alex A.
Hi, I have files(.jpg, .pdf, .rtf, .xls) in the following non-public folder: /home/alex/documents/ I need to show these files (jpg), or allow the download (.pdf, .rtf ...) from a script for users who already are authenticated and have a session opened in the server (this part is already

get pixel color from image using X,Y

2003-01-30 Thread Alex
hi all, I'd like to get color using coordinates. it's better like "FF" and image format doesn't matter -- Alex mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

check file existence

2003-01-08 Thread Alex Cheung Tin Ka
ailable = 1;} return $notAvailable; The file does exist, but the code always return 1; I do try to install the module Test::File (but failed) and using open file to test the file existence ( it works) I would ike to know how to use the "-e" to check it. Regards, Alex

How to substract words

2003-01-07 Thread Alex Demmler
Hi folks! I have a problem with pattern matching. I want do find the difference between two words. I have tried, but donot get it work. Any tips? Example: 1. Word = helloRed 2. Word = hello --- Result = Red Thanks Alex -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

How to substract words

2003-01-07 Thread Alex Demmler
Hi folks! I have a problem with pattern matching. I want do find the difference between two words. I have tried, but donot get it work. Any tips? Example: 1. Word = helloRed 2. Word = hello --- Result = Red Thanks Alex -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Clear command in perl?

2003-01-05 Thread Alex Demmler
w system("clear"); on UNIX system("cls"); on Windows Now the terminal will be cleared. ;-) Alex PS: Find attached an sample #!/usr/bin/perl -w print ("hello\n"); print("clear screen in 5 sec!\n"); sleep(5); system("clear"); exit 0; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How to write hex values into a file

2003-01-05 Thread Alex Demmler
Hi folks! How do I write hex Values direct into a file (like a hex editor does)? I have tested some stuff with "printf" but it did not worked (as I expected or I did wrong). Example: I need to write "C9D0D3C6" as header in front of my files. Thanks a lot Alex -- To

match only a-z or 0-9

2002-11-12 Thread Alex Cheung Tin Ka
Dear All, Could anyone tell me how to make a regular expression for match a string only [a-z0-9] ? Thanks

Newbie - Help with writing a memory leak script for an applicatio n...

2002-11-12 Thread Yuen, Alex
an e-mail notification is sent. I have ActiveState Perl v5.6.a build 633 installed on my Windows workstation. Thanks in advance. Alex Yuen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

hi,everyone,help me

2002-11-03 Thread alex chen
hi,all! today,i have write such a program #!usr/local/bin/perl5.6.1 #middle machine version 1.0 use IO::Socket; $SIG{CHLD} = sub {wait()}; $main_sock = new IO::Socket::INET(LocalHost =>'192.168.1.2', LocalPort => 34561, Listen=> 5, Pro

how to get the last line of a file

2002-10-11 Thread alex chen
hi, all i want to know how to get the last line of a file .i know the func read has a paramenter offset but i don't know how to use it.please help!!! thanks alex chen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

how to check variable in list

2002-09-25 Thread Alex Cheung Tin Ka
Dear All, I would like to know how to check whether a variable exists in an array here is my code $a = 1; @b = (1,2,3,4); Regards. Alex

RE: Window Services - stop/start (Newbie)...

2002-09-12 Thread Yuen, Alex
: y Installing package 'win32-service'... Error installing package 'win32-service': Read a PPD for 'win32-service', but it is not intended for this build of Perl (MSWin32-x86-multi-thread) PPM> quit Quit! * Thanks. Alex >

RE: Window Services - stop/start (Newbie)...

2002-09-12 Thread Yuen, Alex
t your browser at http://www.perl.com/, the Perl Home Page. *** Thanks. Alex > -- > From: Timothy Johnson[SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, September 10, 2002 4:34

Window Services - stop/start (Newbie)...

2002-09-10 Thread Yuen, Alex
if an error were to occur in any step of the Perl script. Haven't decided to attach the log to the e-mail or not. But would be using Mime::Lite for this. Thanks. Alex -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Newbie question - Can smtp send attachments?

2002-09-05 Thread Yuen, Alex
CTED] > Subject: Re: Newbie question - Can smtp send attachments? > > Hey Alex, > > My MUA believes you used Internet Mail Service (5.5.2653.19) > to write the following on Wednesday, September 4, 2002 at 2:39:07 PM. > > YA> Hi, > > YA> Having prob

RE: Newbie question - Can smtp send attachments?

2002-09-04 Thread Yuen, Alex
**** ** So, what does the output message mean? Thanks. Alex > -- > From: Bob Showalter[SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, September 04, 2002 11:33 AM > To: '[EMAIL PROTECTED]' > Subject: RE: Newbie question - Can

Newbie question - Can smtp send attachments?

2002-09-04 Thread Yuen, Alex
Hi, Is it possible to send attachments using NET::SMTP? Will I need to use a seperate module in my script? If so, which one and how? Thanks. Alex -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Newbie question on smtp...

2002-09-04 Thread Yuen, Alex
Never mind...figured it out. Stupid error with the # sign. Thanks though. Alex > -- > From: Yuen, Alex > Sent: Wednesday, September 04, 2002 10:11 AM > To: 'Perl Beginners' > Subject: Newbie question on smtp... > > I am having

Newbie question on smtp...

2002-09-04 Thread Yuen, Alex
t;); $smtp->datasend("A simple test message\n"); $smtp->datasend(); $smtp->quit; * This seems simple enough, but keep getting this error message. Using

Newbie Question - Monitoring NT Server(s) and Notification...

2002-08-28 Thread Yuen, Alex
iated. Thanks. Alex Life is grand...don't let it pass you by. Enjoy life...second chances don't always come around. :-) -- To unsubscribe, e-mail: [EMAIL

Re: Regexp

2002-08-27 Thread alex chen
"David Samuelsson" <[EMAIL PROTECTED]> ??:[EMAIL PROTECTED] ... > more regexps.. > > $_ comes in this form: > > servername:D:\CC_Storage\Views\EUSDNKG_Madeleine_Tae68_view.vws [uuid 74a6b3b0.d1cd11d4.896e.00:b0:d0:83:b4:9b] > > i want $_ to be just the uuid number that is: 74a6b3b0.d1cd11d4.8

is there any way to redirect a format to TK::Text

2002-08-27 Thread alex chen
hi,everyone: i have a trouble in TK,please help me.i have a format like this format ALARMLABEL_TOP = ALARM REPORT ___ NodeName :@||| $node Time :@ ,Priority: @ $time, $priority Alarm_d :@|

how to make a regex for a ip address

2002-08-18 Thread alex chen
hi, i am a beginners in perl.i am studying perl regex now ,and i want to know how to make a regex for a ip address. thank you!! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

waiting page

2002-04-30 Thread Alex Cheung Tin Ka
time is too long and the browser is going to be time out. I would like to know is there any solution for this. How to making a pending page that waiting for the query? Regards, Alex

Re: question in list

2002-04-17 Thread Alex Cheung Tin Ka
what is the difference with this? grep(/$a/, @b); & grep $a eq $_, @b; perl is amazing - Original Message - From: "John W. Krahn" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 18, 2002 10:39 AM Subject: Re: question in list

question in list

2002-04-17 Thread Alex Cheung Tin Ka
Dear All, I have a problem about the list value. I have got a scalar say $a='a' and a list say @b = ('a', 'b','c'); how can I check whether $a is one of the value in @b. Is there any easy way to do it and I got lost in perl.com's piles of documentation. Thanks Alex

How to check installed Modules in perl

2002-04-16 Thread Alex Cheung Tin Ka
Dear All, I am new to perl. I would like to know what can I do to check whether I have installed particular module in perl. Thanks Alex

rlogin

2002-04-05 Thread Alex Read
Hello - I would like my perl script to login to a different machine and then execute the rest of the script on that machine. I'm working in a UNIX/LINUX environment. Can anyone point me in the right direction? Thanks Alex. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

append local file to remote file

2002-02-07 Thread Alex Harris
Apologies for the loosely interpreted perl issue below. I have rsh on my system and nothing else is available that I know of. I need to send a local file to a remote system and APPEND the local file to the remote file. All I can find in the man pages however is how to do just the reverse. I

still not catching error

2002-02-01 Thread Alex Harris
I took out the exec and placed system. But even though work.pl doesn't exist on the remote system, still getting no error. Help! if (system("rsh $plant /u1/bin/forkit '/u1/bin/work.pl'") > 0) { excep(" $!\n"); } _

why doesn't this error

2002-02-01 Thread Alex Harris
First, I read perldoc -f exec() and did as follows: exec "rsh $plant /u1/bin/forkit 'work.pl'" or print STDERR "Couldn't fork it.\n $!\n"; BUT, even though the file it should be exec - ing 'work.pl' does NOT exist on the remote system, the error doesn't get kicked off. The only error I'

testing for a dir

2002-02-01 Thread Alex Harris
What is the best way, using rsh, to test if a directory exists on another server? _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: [EMAIL P

Getting a message

2002-01-24 Thread Alex Harris
exec "rsh $plant /u1/bin/forkit '/u1/bin/zwork.pl'" How do I use the above, which starts my process then lets my calling program continue, to check for an error? In this particular case, the error occurs because zwork.pl does not exists on the maching the rsh is calling and I need to note this

catching error

2002-01-24 Thread Alex Harris
exec "rsh $plant /u1/bin/forkit '/u1/bin/zwork.pl'" How do I use the above, which starts my process then lets my calling program continue, to check for an error? In this particular case, the error occurs because zwork.pl does not exists on the maching the rsh is calling and I need to note thi

adding date to filename.

2002-01-22 Thread Alex Harris
$errlog = `date."MainDeploy.%m%d%y"`; why doesn't this work? It does in unix. Also what's the way I add a date to file name? I'd like to create the following convention. plantname.date.log Error.plant.date.log. _ MSN Photos is

to die, croke, or confess

2002-01-21 Thread Alex Harris
I need to place code that leaves my program entirely if certain errors occur (mostly on opening a file). However I don't want ANY messages going anywhere except my $errlog. (I noticed die, seem to always show a message at the command line). What's the best way to handle say the following th

to die, croak, or confess

2002-01-21 Thread Alex Harris
I need to place code that leaves my program entirely if certain errors occur (mostly on opening a file). However I don't want ANY messages going anywhere except my $errlog. (I noticed die, seem to always show a message at the command line). What's the best way to handle say the following the

catching an exception before it reaches command line

2002-01-17 Thread Alex Harris
The program I'm writing is going to run under a cron job. Therefore its important that I catch all exceptions in a file and not have them return to the command line. For instance the following: (system("ls *.r > $plantfile") raises this exception at times: ls: 0653-341 The file *.r does no

setting date to that of file copied

2002-01-14 Thread Alex Harris
I'm running a pgm that copies files over to a new system if they are old or do not exist. However, once I've copied the files to the new system, they read the date they were created vs the date of the original files I copied. How do I keep the date of those copied files the same as the orig

forkit

2002-01-14 Thread Alex Harris
I had the following in my program. `rsh $plant /u1/bin/forkit "/u1/bin/zwork.pl"` and it wouldn't let go until the second program completed. so I tried system("rsh $plant /u1/bin/forkit '/u1/bin/zwork.pl'" and still it won't let go. How do I fix this? __

split, ignoring spaces

2002-01-09 Thread Alex Harris
I'm doing the following to seperate out items: @date = split(/ /,$date); However, I keep ending up with a space in @date[3]. How do I totally eliminate spaces so only words/numbers appear in the array? _ MSN Photos is the easie

timestamp without the time

2002-01-08 Thread Alex Harris
How do I get the mm dd a file was created WITHOUT the time? _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

date compare problems

2002-01-07 Thread Alex Harris
Ok so I'm REALLY REALLY a newbie and this next question is going to sound like "where's the spoon" so you can feed me but... Here's my code and the error I got. I know it means I'm suppose to include something but I'm not sure what. use File::stat; use Time::localtime; $date_string =

comparing dates

2002-01-07 Thread Alex Harris
if I use the following to get the date of a file: use File::stat; use Time::localtime; $date_string = ctime(stat($file)->mtime); print "file $file updated at $date_string\n"; I get: Mon Jan 7 10:21:21 2002 Now I want to compare another file date to this one getting the date

test and question

2002-01-07 Thread Alex Harris
I just joined and have a newbie question. How can I read in the date of a file (mmdd) AND then compare that to another date in Perl? I'm running of and AIX Unix machine. Please email me direct at [EMAIL PROTECTED] _ Chat w

  1   2   >