Anyone know how to pass in parameters to .pl files?

2001-06-18 Thread eric wang
Hi everyone, does anyone know how to pass in parameters from command line to a perl script? Is it the same as C++ where i specify an ARGV[ ] and ARGC value or I use the @ARGV? Thanks eric

creating columns on the fly

2001-07-05 Thread Eric Wang
Hi guys, I am writing a perl script that will take some command prompt parameters and linking it with a SQL server database. I sort of have an idea on how to do it. But need you guys to give me some directions as to which way is the best. First, I decided that I will need to generate the SQL s

RE: creating columns on the fly

2001-07-05 Thread eric wang
Thanks for the tip, But what if I am using Microsoft SQL server 7? is there a way to do this? eric -Original Message- From: dave hoover [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 05, 2001 12:43 PM To: Eric Wang; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: creating columns

Associative array

2001-08-14 Thread Eric Wang
Hi guys, Got a quick question. If I let @foo = "some string"; can I access say the "t" in this string by using $foo[6] ? thanx eric * *Eric T. Wang * *Bioinformatic Support and SRA

uploading files via web

2001-08-31 Thread Eric Wang
Hi guys, I have a quick question, how do I enable my webpage to be able to browse the users computer and allow him/her to upload files into the server? is there a particular CGI module? or what's the deal? Thanks!! Eric -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

take out 1 character from a variable

2001-09-06 Thread eric wang
Hi people, I am trying to take this optional parameter into my perl script. I use a hypen (-) to indicate that it's a parameter. However, how do i get rid of that hyphen? so for example: myexe -hello -world -1 when entered into my script it becomes just ARGV[0] = hello ARG[1]=world ARG[2]=1 ? h

split on _ and on -

2001-09-07 Thread eric wang
Hi people, just need a quick reference. how do i split on underscore?( _ ) and on hyphen? ( - )? i tried split(/\_/, $var) but didn't work and I also tried split ('_', $var) but didn't work also. HELP... Thanks Eric -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

Periodic Auto Start

2001-10-04 Thread Eric Wang
Hi People, How do I call a perl script periodically. Say everyday at 2:00am, I copy one directory to the backup machine? Thanx Eric -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: DELETE BLANK LINE

2001-10-04 Thread Eric Wang
Yeah, I think you can use chomp(); so use foreach $i (@foo){ chomp($i); do you things here } I am not sure if you can delete the line if it's all blank. But, worth a try. ;) Eric * *Eric T. Wang

Test

2001-10-22 Thread Eric Wang
Hi guys, I just configured pine to accept emails from [EMAIL PROTECTED] to go into another folder. Please do not reply and disregard this email. Thanks Eric -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

directory browsing in TK

2002-04-30 Thread Eric Wang
Hi Guys, I am wondering which module and documentations I should look for if I need to allow users of this GUI program to browse their directory and pick a file. Thanks Eric

Re: How to a parse a string in perl

2002-05-10 Thread Eric Wang
Can you explain what all that means? specifically the /!([^!]*)/g part and the $1 part I only had limited automaton experience thanks for your time Eric > You could use split(), but you'd have to get rid of the first > (empty) element. Instead, I would suggest the following regex: > > while

RE: win32 mail

2002-05-21 Thread Eric Wang
I tried sendmail and it says connect to localhost failed. Help please Eric On Tue, 21 May 2002, Timothy Johnson wrote: > > You can also use Mail::Sendmail or Mail::Sender to send emails from a perl > script. Both should be on CPAN. > > -Original Message- > From: Tim Musson > To: [EMAI

equivalent of /* */

2002-05-21 Thread Eric Wang
Hi guys, newbie question: what's the equivalent of /* */ as in C++ in PERL?? Thanks Eric -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: SEND MAIL QUESTION ON NT

2002-05-23 Thread Eric Wang
I just did this, have fun ^^ you must install Mail-sendmail module #CODE STARTS HERE #!d:\perl\bin\perl.exe -w use strict; use Mail::Sendmail; my %mymail; # use =cut =cut for /* */ my ($To, $subject, $body); $subject = "subject goes here"; $To = "[EMAIL PROTECTED]"; $body = "Hello friend, \nThi

the sort routine

2002-05-28 Thread Eric Wang
Hi People, I have this flat text file with numbers in it. I tried to use the sort routine but it seems like the numbers were not sorted at all. Help.. Eric -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: the sort routine

2002-05-28 Thread Eric Wang
2002, Timothy Johnson wrote: > > Maybe you could give us an example of what you've done? > > -Original Message- > From: Eric Wang [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 28, 2002 1:03 PM > To: [EMAIL PROTECTED] > Subject: the sort routine > > > >

Re: renaming all files in a directory

2002-06-07 Thread Eric Wang
the use of the term system come to mind or the character `systemcommands` or @filelist = `dir *.mp3 /b` also comes to mind. ^^ Eric On Fri, 7 Jun 2002, Jeff Hooge wrote: > All right, first off I'm a total perl newbie (about 2 days now) and am > looking for some resources on how to do a few th

Re: Changing a map on an HL server via Perl

2002-06-10 Thread Eric Wang
> the questions are: > > a) how do you send commands to it now? there's an internal command prompt(console) that you can pop up in half-life > b) what is a half-life dedicated server? > Half-life is a extremely popular computer first-person shooting game. c) w

ppm question

2001-11-01 Thread Eric Wang
Hi people, I downloaded some modules off activestate's site and wanted to install the module. But when I type ppm install name, it gives me an error saying no PPD file found. Any suggestions? Thanks a lot! Eric

create a GUI via to execute perl script

2001-11-05 Thread Eric Wang
Hi guys, Here's a newbie question. How do I create a GUI for users using either UNIX (SOLARIS) or Windows to execute a perl script? Also, I like that cool box with "browse." in with ability to browse the system looking for files. Thank you! Eric

perl2exe

2002-02-05 Thread Eric Wang
Hi guys, I Haven't written in this forum in so long. =) Just wondering if there are any other software out there that can make my perlscript independent of the Perl interpreter. Thanks Eric

Newbie Question

2002-03-11 Thread Eric Wang
Hi guys, I have a newbie question. I've tried to update my module packages and was using ppm on win2k. After I installed Tk, my ppm isn't working anymore. It'll still give me command prompt, but when I type verify -upgrade, nothing happens. Can anybody help me? Thanks Eric