Re: PERL Programming Standsrds Help : Urgent

2002-04-15 Thread Felix Geerinckx
on Tue, 16 Apr 2002 06:39:48 GMT, Rajnish_aggarwal wrote: > I am preparing a standards document for defining the PERL Coding > Standards. Any inputs on this will be highly welcome. I will post the > document on the list for the benefit of other once completed. Did you already try perld

Re: Checking and email address

2002-04-15 Thread Michael Kelly
On 4/15/02 10:38 PM, Timothy Johnson <[EMAIL PROTECTED]> wrote: > I think the preferred way to do a negative match is with the !~ operator. > > if( $email !~ /@/ ) > > at this point you don't really need to check if $email eq "", because if it > does it will not have an @ in it. > > I'm not su

PERL Programming Standsrds Help : Urgent

2002-04-15 Thread rajnish_aggarwal
HI , I am preparing a standards document for defining the PERL Coding Standards. Any inputs on this will be highly welcome. I will post the document on the list for the benefit of other once completed. Thanks, -Rajnish -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

replacing special characters

2002-04-15 Thread jon shoberg
How do I go about removing characters from a string that are not alpha-numeric, a question-mark, < character, or > character ? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Perl License

2002-04-15 Thread Mayank Ahuja
Hi Group, I have an application which uses Perl and many modules. The application is like an installer for my other programs (not written in Perl). Since the whole bundle is a commercial package, which all licenses do i need to get for Perl (I heard of something like GNU license). Is it free? Co

RE: Checking and email address

2002-04-15 Thread Timothy Johnson
I think the preferred way to do a negative match is with the !~ operator. if( $email !~ /@/ ) at this point you don't really need to check if $email eq "", because if it does it will not have an @ in it. I'm not sure, but you might also have to escape the @. -Original Message- From:

Re: Checking and email address

2002-04-15 Thread bob ackerman
On Monday, April 15, 2002, at 08:58 PM, Daniel Falkenberg wrote: > Hello All, > > How would I go about checking to see if a variable contains an @ symbol? > > $email = "[EMAIL PROTECTED]"; > > if ($email ne "@" || $email eq "") { > print "Please make sure your type your email address in correc

Re: Checking and email address

2002-04-15 Thread bob ackerman
On Monday, April 15, 2002, at 08:58 PM, Daniel Falkenberg wrote: > Hello All, > > How would I go about checking to see if a variable contains an @ symbol? > > $email = "[EMAIL PROTECTED]"; > > if ($email ne "@" || $email eq "") { > print "Please make sure your type your email address in correc

Re: Validating form data

2002-04-15 Thread bob ackerman
On Monday, April 15, 2002, at 07:46 PM, Daniel Falkenberg wrote: > Hey All, > > I am just about to go ahead and start validating form data. I was > thinking about tackling it in the following way... > > $data1 = param("data1"); > $data2 = param("data2"); > $data3 = param("data3"); > $data4 = p

Checking and email address

2002-04-15 Thread Daniel Falkenberg
Hello All, How would I go about checking to see if a variable contains an @ symbol? $email = "[EMAIL PROTECTED]"; if ($email ne "@" || $email eq "") { print "Please make sure your type your email address in correctly"; } else { print "All is OK"; } Thx, Dan -- To unsubscribe, e-mail: [E

Re: Question about this list

2002-04-15 Thread Elaine -HFB- Ashton
Kevin Meltzer [[EMAIL PROTECTED]] quoth: *> *>http://nntp.perl.org/group/perl.beginners/ Which reminded me to finally add the nntp stuff to the listings so http://lists.cpan.org/showlist.cgi?name=beginners, etc. should do for future reference. e. -- To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Validating form data

2002-04-15 Thread Daniel Falkenberg
Hey All, I am just about to go ahead and start validating form data. I was thinking about tackling it in the following way... $data1 = param("data1"); $data2 = param("data2"); $data3 = param("data3"); $data4 = param("data4"); if ($data1 ne "Whatever") { print "Not equal"; elsif ($data2 ne "T

Re: How to thread in Perl?

2002-04-15 Thread Ahmed Moustafa
> > You are better off trying > > > > $SIG{CHLD} = 'IGNORE'; > > > > at the top of your program and seeing if zombies are left out there. > > There were no zombies left after the program termination. Then, I don't need > even to push the ids from the children in the stack, right? Something happen

Re: Strip $ from variable

2002-04-15 Thread drieux
In case no one has mentioned it, there are good reasons for using '-w' and "use strict;" in your perl code On Monday, April 15, 2002, at 05:16 , Daniel Falkenberg wrote: [..] > $string = "$20.90"; > > $string =~ s/$//; <-- I figured this would work fine? [..] if you had used '-w' and strict

OT: Old uunet gag was Re: How to thread in Perl?

2002-04-15 Thread drieux
On Monday, April 15, 2002, at 03:56 , Ahmed Moustafa wrote: [..] >> Missile Address: 33:48:3.521N 84:23:34.786W > > By the way, what is the Missile Address? that is the lattitude and longitude of where the server is suppose to be located - an old habit from the UUNET entries into the UUMAPS -

Re: Strip $ from variable

2002-04-15 Thread Jeff 'japhy' Pinyan
On Apr 15, Daniel Falkenberg said: >I was just wondering how I would go about stripping the $ sign from the >following string? > >$string = "$20.90"; That won't do what you expect -- $string is probably ".90" now. $20 is a variable (set by a regex) and is probably undef. You need either '$20.9

RE: Strip $ from variable

2002-04-15 Thread Mark Anderson
You need to escape the $ in the regex: $string =~ s/\$//; -Original Message- From: Daniel Falkenberg [mailto:[EMAIL PROTECTED]] Sent: Monday, April 15, 2002 5:16 PM To: [EMAIL PROTECTED] Subject: Strip $ from variable Hello All, I was just wondering how I would go about stripping the $

Strip $ from variable

2002-04-15 Thread Daniel Falkenberg
Hello All, I was just wondering how I would go about stripping the $ sign from the following string? $string = "$20.90"; $string =~ s/$//; <-- I figured this would work fine? Any ideas? Regards, Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: How to thread in Perl?

2002-04-15 Thread Ahmed Moustafa
> You are better off trying > > $SIG{CHLD} = 'IGNORE'; > > at the top of your program and seeing if zombies are left out there. There were no zombies left after the program termination. Then, I don't need even to push the ids from the children in the stack, right? > Missile Address: 33:48:3.521N

Re: How to thread in Perl?

2002-04-15 Thread Chas Owens
On Mon, 2002-04-15 at 17:31, Ahmed Moustafa wrote: > > #reap the children to avoid zombies > > waitpid $_ for (@children); > > Do I need to pop the pid's from the stack children? > > Thanks, > > Ahmed You are better off trying $SIG{CHLD} = 'IGNORE'; at the top of your program and seeing if

Re: Bidirectional Sockets

2002-04-15 Thread bob ackerman
On Monday, April 15, 2002, at 02:31 PM, James Taylor wrote: > I'm sure this is frequently asked, and I am truly sorry if it is, but > reading through my mail I don't see this question anywhere: > > Curious as to how I would go about creating bidirectional sockets, ie. > client sends informati

Re: pattern match

2002-04-15 Thread bob ackerman
> On Monday, April 15, 2002, at 10:32 AM, Raghupathy, Ramesh . wrote: > >> Bob, >> >>You are right about what I wanted to achieve. I was wondering, if I >> could >> do it using just pattern match, without using any control structures like >> (if, while ...), >> i had to use one loop. sorry

Re: How to thread in Perl?

2002-04-15 Thread Ahmed Moustafa
> #reap the children to avoid zombies > waitpid $_ for (@children); Do I need to pop the pid's from the stack children? Thanks, Ahmed -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: perlcc faq ?

2002-04-15 Thread zentara
On Mon, 15 Apr 2002 09:47:23 -0400, [EMAIL PROTECTED] (Joe Collins) wrote: >Hi, > >I tried the perlcc process this w/e and I am sure I am using it correctly, i.e. >proper parms, good perl program etc but I keep getting a vague error, i.e. >"the system cannot find the specified file" - and it give

RE: How to do a cron job?

2002-04-15 Thread Roger Morris
At 04:03 PM 4/15/2002 -0700, Dennis G. Wicks wrote: >Greetings; > >For ssh access get Tera Term and the SSH extensions. > >I use it both at home and at work and it works and >is simple to set up. > >You can find them using Google. > >Good Luck! >Dennis Putty is another alternative. Single file,

Bidirectional Sockets

2002-04-15 Thread James Taylor
I'm sure this is frequently asked, and I am truly sorry if it is, but reading through my mail I don't see this question anywhere: Curious as to how I would go about creating bidirectional sockets, ie. client sends information to the server, then server responds to the client. I need to know h

RE: How to do a cron job?

2002-04-15 Thread Dennis G. Wicks
Greetings; For ssh access get Tera Term and the SSH extensions. I use it both at home and at work and it works and is simple to set up. You can find them using Google. Good Luck! Dennis -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Cygwining off Re: perlcc - newbie - cannot compile successfully - sample sessio n

2002-04-15 Thread A. Rivera
Fork doesn't work properly. That's about all I've found so far. - Original Message - From: "drieux" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 15, 2002 1:04 PM Subject: Cygwining off Re: perlcc - newbie - cannot compile successfully - sample sessio n > > On Monday,

RE: Question about this list

2002-04-15 Thread Nikola Janceski
Another cool feature is if you filter all perl stuff to a folder is the View->Current View->By conversation topic. (I also auto delete all mails from perl that is older than one day, I have big restriction on the size of my mail and 100+ mails can get big). > -Original Message- > From: Ti

RE: How to do a cron job?

2002-04-15 Thread Ron Goral
Yes, I want to be able to check mailboxes; this is a script to create and manage mailing lists. So, I want to be able to collect and distribute emails sent to a list, respond to subscriptions/unsubscriptions, requests for help, etc. without having to have a human monitor the mailboxes all the tim

RE: Question about this list

2002-04-15 Thread Raghupathy, Ramesh .
I just subscribe to the [EMAIL PROTECTED] and so I get only a few emails everyday but all messages exchanged as attachments to these emails. Hope this helps -Original Message- From: Troy May [mailto:[EMAIL PROTECTED]] Sent: Monday, April 15, 2002 4:19 PM To: Nikola Janceski; 'Timothy Jo

RE: Question about this list

2002-04-15 Thread Timothy Johnson
Now if we could just get people to stop sending those annoying "message loop" emails. Even WITH a rule that gets annoying. -Original Message- From: Troy May [mailto:[EMAIL PROTECTED]] Sent: Monday, April 15, 2002 1:19 PM To: Nikola Janceski; 'Timothy Johnson'; 'Paul Ennis' Cc: Perl Begi

RE: Question about this list

2002-04-15 Thread Timothy Johnson
Saweet! Didn't see that one... I'd feel sheepish if I didn't feel so free of the annoyance. -Original Message- From: Troy May [mailto:[EMAIL PROTECTED]] Sent: Monday, April 15, 2002 1:19 PM To: Nikola Janceski; 'Timothy Johnson'; 'Paul Ennis' Cc: Perl Beginners Subject: RE: Question ab

RE: Question about this list

2002-04-15 Thread Troy May
Bingo! Yep. That's what I just did. So far it caught them all. Thanks alot! I hated sifting through hundreds of emails to get to my important ones. -Original Message- From: Nikola Janceski [mailto:[EMAIL PROTECTED]] Sent: Monday, April 15, 2002 1:14 PM To: 'Timothy Johnson'; 'Paul E

Re: Question about this list

2002-04-15 Thread Kevin Meltzer
http://nntp.perl.org/group/perl.beginners/ Cheers, Kevin On Mon, Apr 15, 2002 at 12:51:32PM -0700, Troy May ([EMAIL PROTECTED]) said something similar to: > Is there a way that I can have access to this list without receiving 150 > emails a day? In other words, if I un-subscribe, does that mea

RE: Question about this list

2002-04-15 Thread Nikola Janceski
um... have you tried filtering by [EMAIL PROTECTED] in the header? it's always there, and there is an option in Outlook for it in the rules wizard. > -Original Message- > From: Timothy Johnson [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 15, 2002 4:02 PM > To: 'Paul Ennis'; 'Troy May

RE: Question about this list

2002-04-15 Thread Timothy Johnson
My only pet peeve with trying to organize list emails is the number of people who have created aliases out of random letters. My rule is starting to get pretty long. It has to look for [EMAIL PROTECTED], beginners, perl, subject lines of perl, Win32::, etc., just to get most of them, and every

Cygwining off Re: perlcc - newbie - cannot compile successfully - sample sessio n

2002-04-15 Thread drieux
On Monday, April 15, 2002, at 12:12 , Timothy Johnson wrote: > I did a little looking into this, since you have obviously decided that > this > is something you need. If you check out perlcc.bat, then you will see > that > there is a system() call. The system call references $Config{cc}, whi

RE: Sending Command Output over Net::FTP

2002-04-15 Thread Balint, Jess
Now, on the flip side, comes the hard part. The FTP server has a connection timeout. IE if I log on, the connect will only last 5 idle minutes and then drop. What could I do to initiate the FTP connection once the data starts being received through the file handle? I could do while() { $f

RE: Question about this list

2002-04-15 Thread Paul Ennis
I don't know the answer to your question but I have had the same problem, but I found a simple solution. I made a Perl folder in Outlook 2000 and hit Organize on the Toolbar. Organize will let you associate all emails from Perl Beginners into this folder away from your work folder. This way I

RE: Question about this list

2002-04-15 Thread Timothy Johnson
Well sure, but that would be cheating. ;) Seriously, though, I think you can subscribe to a digest that will give you all of the day's posts consolidated into one email. -Original Message- From: Troy May [mailto:[EMAIL PROTECTED]] Sent: Monday, April 15, 2002 12:52 PM To: Perl Beginne

Question about this list

2002-04-15 Thread Troy May
Is there a way that I can have access to this list without receiving 150 emails a day? In other words, if I un-subscribe, does that mean that I can't use it anymore? Or does it just mean that I won't receive all these emails but will still be able to post a question? -- To unsubscribe, e-mail

RE: Sending Command Output over Net::FTP

2002-04-15 Thread Balint, Jess
Ah yes, good call. I think I can still use open, like this: open( OUTPUT, "sqlrun file.sql 2> $$.log |" ); bla bla bla print "No error" if( -z $$.log ); Thanks! -Original Message- From: Timothy Johnson [mailto:[EMAIL PROTECTED]] Sent: Monday, April 15, 2002 3:34 PM To: 'Balint, Jess'; '

RE: Sending Command Output over Net::FTP

2002-04-15 Thread Timothy Johnson
Do you NEED the return code from the system call? Is there some text returned when you perform the query to determine if it was successful? If so, you can just use backticks and parse the output first to see if it was successful. $output = `sqlrun mysqlfile.sql`; $output =~ /failed/ || ftpsen

RE: Sending Command Output over Net::FTP

2002-04-15 Thread Balint, Jess
I think open() is giving me the process ID of the query. Is there any way to pipe the output of a system command to a filehandle? Or even stdout? -Original Message- From: Nikola Janceski [mailto:[EMAIL PROTECTED]] Sent: Monday, April 15, 2002 3:24 PM To: 'Balint, Jess'; Nikola Janceski Cc

RE: Sending Command Output over Net::FTP

2002-04-15 Thread Nikola Janceski
yes... but I don't think you are checking the exit status if that's all you are doing, don't know much about the bit status it returns but it's the same for system and open for a command. > -Original Message- > From: Balint, Jess [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 15, 2002 3

Re: automagic web query ?

2002-04-15 Thread Michael Lamertz
On Mon, Apr 15, 2002 at 10:42:45AM +0200, Martin A. Hansen wrote: > > im trying to write a script that does a search on a remote website. the script needs >to fill in a form field with a search word and save all the results. there is three >different form fields on the webpage, but im only inte

RE: perlcc - newbie - cannot compile successfully - sample session

2002-04-15 Thread Timothy Johnson
I did a little looking into this, since you have obviously decided that this is something you need. If you check out perlcc.bat, then you will see that there is a system() call. The system call references $Config{cc}, which if you look farther up the ladder, seems to point to a file that matche

RE: Sending Command Output over Net::FTP

2002-04-15 Thread Balint, Jess
Can I still receive the exit code from that command that way? That is how I am testing if the query ran correctly. Hence: $code = system( "sqlrun mysqlfile.sql" ); print "Error" if $code; -Original Message- From: Nikola Janceski [mailto:[EMAIL PROTECTED]] Sent: Monday, April 15, 2002 3:1

RE: Sending Command Output over Net::FTP

2002-04-15 Thread Nikola Janceski
you probably want to use open(); open(COMMAND, "sqlrun mysqlfile.sql |") or die "cannot execute: $!"; while(){ #ftp stuff } > -Original Message- > From: Balint, Jess [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 15, 2002 3:05 PM > To: '[EMAIL PROTECTED]' > Subject: Sending Command Ou

Sending Command Output over Net::FTP

2002-04-15 Thread Balint, Jess
Hello all, now that this works . . . I am trying to send the output from a database query over and FTP connection into a remote file. When I run it like: sqlrun mysqlfile.sql | myperlscript.pl It seems to work alright. What I would like to do is have the perl scripts kick off the query through

Test - DO NOT READ

2002-04-15 Thread Balint, Jess
Sorry to send this, but I could not post to the list for some reason. This lasted all last week and I wanted to see it if works now. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

perlcc - newbie - cannot compile successfully - sample session

2002-04-15 Thread Collins, Joe (EDSI\\BDR)
Do I need something else, i.e. path settings or whatever? My source: use strict; my $ans=3*12; print "3x12=$ans\n"; My platform: Windows XP I am in directory c:\ and invoke as shown. perlcc -o z.exe z.pl -- Compiling z.pl:

Re: string manip on japansese characters?

2002-04-15 Thread Felix Geerinckx
on Mon, 15 Apr 2002 16:36:44 GMT, John Mooney wrote: > I was wondering if someone could provide some advice on how to tweak > a perl script to deal with double-byte (UTF_8 & S-JIS) characters > from within perl Are you familiar with the 'Perl, Unicode and i18N FAQ' at

string manip on japansese characters?

2002-04-15 Thread John Mooney
Hello, I was wondering if someone could provide some advice on how to tweak a perl script to deal with double-byte (UTF_8 & S-JIS) characters from within perl. I've read a TPJ article by Jeff Friedl. I've also searched CPAN and found many different modules - IMAP*, UTF-*, and on and on and am a

Re: How to do a cron job?

2002-04-15 Thread drieux
On Monday, April 15, 2002, at 08:52 , Ron Goral wrote: > It is a Linux server. Sorry I didn't make it more clear, not only do I > not > have telnet access, neither do I have command line access. As for the man > on crontab, I could not locate that nor is it covered at www.Perl.org. > However,

RE: How to do a cron job?

2002-04-15 Thread Ron Goral
It is a Linux server. Sorry I didn't make it more clear, not only do I not have telnet access, neither do I have command line access. As for the man on crontab, I could not locate that nor is it covered at www.Perl.org. However, there is a nice little tutorial at http://www.superscripts.com/tuto

Re: perlcc "the system cannot find the file specified". ??

2002-04-15 Thread drieux
On Monday, April 15, 2002, at 08:04 , Collins, Joe (EDSI\BBDR) wrote: > > I also tried the same stuff in c:\ and received the same messages. > > Any ideas? > > Joe I'm very new to this as well - but a thought: do you have a 'real compiler' on the machine? It is not clear to me that the perlcc

RE: splitting / regex / trend etc

2002-04-15 Thread Hooten, Michael
use warnings; use strict; my (@fruitname, %fruit, %totals); my $tab=9; open DATA, "data.txt"; @fruitname = split /[,\s]+/ => ; #@fruit{ @fruitname } = undef; while ( ) { my @values = split /[,\s]+/; # => $_ ; for (my $x=0; $x<=$#values; $x++) { push @{ $fruit{$fruitname[$x]} } => $v

How to do a cron job?

2002-04-15 Thread Ron Goral
Can someone point me toward resources on how to conduct a "cron job" in script? I have no access to the server via telnet, so this would have to be script based. I am using the Perl command "sleep $sec" now, but there may be some issues with that. Self perpetuation can be a bad thing for system re

RE: perlcc "the system cannot find the file specified". ??

2002-04-15 Thread Collins, Joe (EDSI\\BDR)
I did ...I went to \perl\bin and found perlcc.bat - I then copied my .pl program (lamore.pl) there and typed: perlcc -o z.exe lamore.pl It started running and invoked Perl twice and then coughed up that message. I browsed perlcc.bat and did not find the message in there so it must be coming from

Re: examining a file line-by-line

2002-04-15 Thread Jeff 'japhy' Pinyan
On Apr 15, Dave Chappell said: >I open 1 file for reading and another for writing. The script examines each >line of the file being read and if any of the following words or digits >matches, skip the line and go to the next. Write everything else to another >file. > >while () { > next if /(\d5|

Win32::MAPI

2002-04-15 Thread David H. Lynch Jr.
I am looking to write a script to delete duplicate emails. Unfortunately the most useful interface to the mail system that I can use to do this would be MAPI. I seemed to recall a Win32::MAPI Perl module, and there are references to it on the web as well as examples, but I can not seem

RE: examining a file line-by-line

2002-04-15 Thread Nikola Janceski
I asked this same question.. The second way would be more efficent if you put the pattern that will match more often first/at the top. > -Original Message- > From: Dave Chappell [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 15, 2002 10:30 AM > To: [EMAIL PROTECTED] > Subject: examining

Re: Executing Shell Commands

2002-04-15 Thread Chris Ball
> "Matt" == Matt Fuerst <[EMAIL PROTECTED]> writes: Matt> How do I execute a shell command in perl? With the backtick operator: $result = `ls`; Matt> Also I want to check the return status of the shell command, Matt> can I just assign a variable to it and check to see the v

examining a file line-by-line

2002-04-15 Thread Dave Chappell
Is there a more efficient way of approaching this? I open 1 file for reading and another for writing. The script examines each line of the file being read and if any of the following words or digits matches, skip the line and go to the next. Write everything else to another file. while (

Executing Shell Commands

2002-04-15 Thread Matt Fuerst
How do I execute a shell command in perl? Also I want to check the return status of the shell command, can I just assign a variable to it and check to see the value of the variable once the command is complete? Thanks! Matt Fuerst www.jackasscritics.com -- To unsubscribe, e-mail: [EMAIL PROTEC

Re: How use command line parameters?

2002-04-15 Thread Jonathan E. Paton
> I want to get a file name from command line, like this: > somecommand.pl filename #!/usr/bin/perl -w my $filename = shift; print $filename; > How I can realize it? How it realizes with several files: > somecommand.pl file1,file2... fileN? Arguments are stored in @ARGV, which is also @_ at the

evolve into tie/dbm was Re: splitting / regex / trend etc

2002-04-15 Thread drieux
On Monday, April 15, 2002, at 02:01 , Mark. wrote: [..] > Out of intrest, if I wanted to look at the exact no. sold > > ie. get output like: apples, 4, 3 and 0 [..] http://archive.develooper.com/beginners%40perl.org/msg23928.htmlo this was the option from David Grey that showed up on the list,

Re: Convert Number In Strings to Numeric Form

2002-04-15 Thread Johannes Franken
* <[EMAIL PROTECTED]> [2002-04-15 15:45 +0200]: Sorry, cut&paste did it again. In my mail, please replace > @sorted_alphabetically = sort {$a <=> $b} @mylist; with @sorted_alphabetically = sort {$a cmp $b} @mylist; -- Johannes Franken Professional unix/network development mailto

Happy List Anniversary

2002-04-15 Thread Kevin Meltzer
Hey folk, This list has now been around for just over a year. It was created on April 11, 2001 and announced on use Perl; a few days later. Considering the number of people on here, there have been minimal issues with flaming, OT posts, and general mayhem (let's keep it up!). In all, based on pri

perlcc faq ?

2002-04-15 Thread Collins, Joe (EDSI\\BDR)
Hi, I tried the perlcc process this w/e and I am sure I am using it correctly, i.e. proper parms, good perl program etc but I keep getting a vague error, i.e. "the system cannot find the specified file" - and it gives NO hint of which file it wants, i.e. .pm, .dll etc? Is there an FAQ for perlcc

Re: Convert Number In Strings to Numeric Form

2002-04-15 Thread Johannes Franken
* Mok T.Y.-r15382 <[EMAIL PROTECTED]> [2002-04-15 15:14 +0200]: > I need some help in converting strings that contain numbers back into > numeric form. No need to convert: Perl doesn't differ between numbers and strings. Yes, this is completely unlike C, and normally it works as expected. Just i

Re: Convert Number In Strings to Numeric Form

2002-04-15 Thread Chris Ball
> "Mok" == Mok T Y <[EMAIL PROTECTED]> writes: Mok> Hi, I need some help in converting strings that contain numbers Mok> back into numeric form. Apparently, when I sort string Mok> formatted number, the arrangement was according to alphanumeric Mok> order (eg. 1, 10,11,2,20,21

Re: Convert Number In Strings to Numeric Form

2002-04-15 Thread Felix Geerinckx
on Mon, 15 Apr 2002 13:14:40 GMT, Mok T.Y.-R15382 wrote: > I need some help in converting strings that contain numbers back into > numeric form. Apparently, when I sort string formatted number, the > arrangement was according to alphanumeric order (eg. 1, > 10,11,2,20,21,3,30... ). Are you using

Re: How use command line parameters?

2002-04-15 Thread Johannes Franken
* Ramis <[EMAIL PROTECTED]> [2002-04-15 22:14 +0200]: > I want to get a file name from command line Perl pushes then to a list named @ARGV . So you can access them with any function that operates on lists, like foreach, shift, pop or just $ARGV[n] . > How it realizes with several files: somecom

Convert Number In Strings to Numeric Form

2002-04-15 Thread Mok T.Y.-r15382
Hi, I need some help in converting strings that contain numbers back into numeric form. Apparently, when I sort string formatted number, the arrangement was according to alphanumeric order (eg. 1, 10,11,2,20,21,3,30... ). Thanks, TY -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

RE: Perl on the Palm OS?

2002-04-15 Thread ryanb
Thanks for the advice. The problem with a web based app in my case is the TCO for users of my application. I want it to be as affordable as possible for users. If I make it web based, the user will have no choice but to sign up for some type of wireless service which will drive up the TCO signific

How use command line parameters?

2002-04-15 Thread Ramis
Hi! I want to get a file name from command line, like this: somecommand.pl filename How I can realize it? How it realizes with several files: somecommand.pl file1,file2... fileN? Thanks. -- ---! My blessing! Ramis. ! ---! http://www.samtan.fromru.com mailto: [EMAIL PROTECTED

Re: CGI::ReadParse

2002-04-15 Thread zentara
On Sun, 14 Apr 2002 16:36:39 -0400 (EDT), [EMAIL PROTECTED] (Shaun Fryer) wrote: >I'm having a little difficulty understanding how CGI::ReadParse is >supposed to work. I have the misfortune of only knowing how to use >cgi-lib.pl for parsing form data. It's extremely easy. Now I have the >problem

Re: Decimal numbers

2002-04-15 Thread Johannes Franken
* Ho, Tony <[EMAIL PROTECTED]> [2002-04-15 12:15 +0200]: > If I read a value of 123.456 and I would like to print this value out as > 123456 (without decimals), how can I go about it without doing any > multiplication ? $value=~y/.//d; -- Johannes Franken Professional unix/network development

Re: Decimal numbers

2002-04-15 Thread Jonathan E. Paton
> Hi guys > I was wondering if you could help me. > If I read a value of 123.456 and I would like to print this value out as > 123456 (without decimals), how can I go about it without doing any > multiplication ? $number =~ tr'.''d; # Use transliteration to delete the dot. There are of course ot

Decimal numbers

2002-04-15 Thread Ho, Tony
Hi guys I was wondering if you could help me. If I read a value of 123.456 and I would like to print this value out as 123456 (without decimals), how can I go about it without doing any multiplication ? I would be most grateful for any advice. Thanks in advance Tony

RWConfig.pm

2002-04-15 Thread Gary Stainburn
Hi all, I'm writing a number of small apps that will all need the same config file, so using RT2 as a basis as that already uses it, I've created the following RWConfig.pm, and ProcStock4 which is trying to use it. The only drawback I've seen so far is that I have to include the 'use vars' l

automagic web query ?

2002-04-15 Thread Martin A. Hansen
hi im trying to write a script that does a search on a remote website. the script needs to fill in a form field with a search word and save all the results. there is three different form fields on the webpage, but im only interested in the first one. the results comes in 10 per page only, and

Re: splitting / regex / trend etc

2002-04-15 Thread Mark .
Exactly what I'm looking for! (Amazing stuff) Out of intrest, if I wanted to look at the exact no. sold ie. get output like: apples, 4, 3 and 0 where would I start looking? Many many thanks! Mark On Friday 12 April 2002 15:55, you wrote: > On Friday, April 12, 2002, at 03:56 , Mark