RE: Nucleotide Sequencing

2004-03-12 Thread Bill Akins
> -Original Message- > From: Daniel T. Staal [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 10, 2004 8:11 PM > To: Perl Beginners > Cc: Sumit Kaur > Subject: RE: Nucleotide Sequencing > > > --As of Wednesday, March 10, 2004 6:29 PM -0600, Charles K. > Clarkson is > alleged to have

RE: Script Kiddie issues

2004-02-07 Thread Bill Akins
> -Original Message- > From: LoneWolf [mailto:[EMAIL PROTECTED] > Sent: Friday, February 06, 2004 10:56 AM > To: [EMAIL PROTECTED] > Subject: Script Kiddie issues > > > Frankly I use the apache filter to check for people looking > for cmd.exe or root.exe or any one of a dozen files, and

RE: How to parse Microsoft Outlook Inbox

2004-01-09 Thread Bill Akins
> -Original Message- > From: Tassilo von Parseval > [mailto:[EMAIL PROTECTED] > Sent: Friday, January 09, 2004 12:24 AM > To: Wiggins d'Anconia > Cc: PerlDiscuss - Perl Newsgroups and mailing lists; > [EMAIL PROTECTED] > Subject: Re: How to parse Microsoft Outlook Inbox > > > On Thu, J

RE: working on time

2003-10-10 Thread Bill Akins
\d\d)(\d\d)/); print "Yesterday was $mnth/$day/$yr\n"; >>> Bob Showalter <[EMAIL PROTECTED]> 10/10/03 12:20PM >>> Bill Akins wrote: > ... > Try this: > #!/usr/bin/perl -w > > my @now = localtime; > my $sec = ( $now[0] ); > my $min =

Re: working on time

2003-10-10 Thread Bill Akins
Bill Akins SSS III Emory Healthcare (404) 712-2879 - Office 12674 - PIC [EMAIL PROTECTED]>>> "[EMAIL PROTECTED]" 10/10/03 08:57AM >>> >Hi, >i search hiw can i work on time. >i want to get day number and make -1 Try this: #!/usr/bin/perl

RE: Split on white space from `command` return?

2003-08-21 Thread Bill Akins
Awesome! Thanks Bob! >>> Bob Showalter <[EMAIL PROTECTED]> [SNIP] Variables are expanded in backticks, so you need to protect the $ on $1, or use qx'' around your command (but then you have to protect the single quotes But there's no need for the awk or grep, since perl has functions to handle t

RE: Split on white space from `command` return?

2003-08-21 Thread Bill Akins
sign with a backslash... otherwise it puts the value of $1 into your command before executing it. You might want to use strict, it would have caught that. Rob -Original Message- From: Bill Akins [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 2:01 PM To: [EMAIL PROTECTED] Subject

Split on white space from `command` return?

2003-08-21 Thread Bill Akins
t I need, why doesn't this work during an external call? Running on Linux, Perl 5.6.1 Thanks all. Bill Akins SSS III Emory Healthcare (404) 712-2879 - Office 12674 - PIC [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: print!?!

2003-07-08 Thread Bill Akins
You may want to take a look at IO::Tee and IO::File module from CPAN. See http://search.cpan.org/author/KENSHAN/IO-Tee-0.64/Tee.pm >>> "Charles Scheepers" 07/08/03 03:56AM >>> The program prints to a number of different places. Files --> data output and some logs. Then I also need to print

Re: While loop, confused... - Thanks!

2003-07-03 Thread Bill Akins
Thank you all for your responses!! I finally have a handle on it and used a little of everyones suggestions. This list rocks because of people like you. Thanks again!

RE: While loop, confused...

2003-07-02 Thread Bill Akins
> > while (($type ne "Windows") || ($type ne "Linux")) { > Right here, you must have the full string "Windows" or "Linux" Yes, correct. > > print "Enter TYPE of server to build. Linux or Windoze > > [linux, windows]: > > \n"; > > $type = ; > > chomp $type; > > $type =~ tr/a-z/A-Z/; > > Here yo

While loop, confused...

2003-07-02 Thread Bill Akins
Hi all! I have this while loop in my script: while (($type ne "Windows") || ($type ne "Linux")) { print "Enter TYPE of server to build. Linux or Windoze [linux, windows]: \n"; $type = ; chomp $type; $type =~ tr/a-z/A-Z/; if (($type eq "LINUX") || ($type eq "L")) { $type = "Linux"; } if (($type

Re: indexing books with Perl

2003-03-18 Thread Bill Akins
You may want to check out ht://dig (www.htdig.org) as it will index pretty near anything. Most of the parsing is done with perl so you get some good examples of what can be done with perl. I know it is ported to *nix, SPARC 2.x HP/UX 10, BSD and OS X. I'm sure there is a WinDoze distro also.

RE: perl to convert HTML to PDF

2003-02-20 Thread Bill Akins
Hi, AFAIK, you would have to convert HTML to Latex or PostScript first. Then you could just run it through either texi2pdf or ps2pdf that should be on your Linux box. (locate 2pdf) I use ps2pdf all the time and have had great success with it. Check out http://www.easysw.com/htmldoc/ You can do

RE: Help getting scripts working...

2003-02-12 Thread Bill Akins
Sorry for top posting but makes this easier... Comments are in your code below. Mostly you forgot semicolons in your code and used = when you needed eq. BTW, I have not tested any of this, just spotted some things. HTH!! Bill -Original Message- From: Mark VanMiddlesworth [mailto:[EMAIL

Re: MS Word question

2003-01-24 Thread Bill Akins
! Bill Akins, CNE Sr. OSA Emory Healthcare (404) 712-2879 - Office 12674 - PIC [EMAIL PROTECTED] >>> "Southworth, Harry" <[EMAIL PROTECTED]> 01/24/03 06:38AM >>> I'm running Perl on Cygwin on top of Windows 2000. I have a lot of ascii text files that someone

Re: Find same key in 2 hashes?

2003-01-23 Thread Bill Akins
Thank you John!!! Worked perfectly. >>> "John W. Krahn" <[EMAIL PROTECTED]> 01/22/03 11:18PM >>> Bill Akins wrote: > > Hi all, Hello, > I have 2 hashes, the keys are a unique field. Hashes are built like this: > > open (INPUTFH, ) or d

Find same key in 2 hashes?

2003-01-22 Thread Bill Akins
Hi all, I have 2 hashes, the keys are a unique field. Hashes are built like this: open (INPUTFH, ) or die "Can't find allusers.chr file!\n"; while ( $line = ) { #set values here here... } push ( @{ $NS{$BV_NF} }, $NS_Name, $NS_Cont, $W_Name, $V_FID, $G_P, $GWD, $NS_Creation, $NS_Expira

Re: Length of String

2003-01-17 Thread Bill Akins
perldoc -f length #!/usr/local/bin/perl -w use strict; my $foo = "This is 10"; my $i = (length $foo); print "The string is $i charecters long!\n"; >>> "Ho, Tony" <[EMAIL PROTECTED]> 01/17/03 06:08AM >>> Hi guys Do you know whether there is a function in perl to find the size of a string ? For ex

RE: Recommend an email module?

2003-01-15 Thread Bill Akins
$mth/$day/$yr.", file => \@MailMe })) and print "Mail sent OK." ) or die "$Mail::Sender::Error\n: $!"; I have used it on *nix boxes as well. HTH. Later! Bill Akins, CNE Sr. OSA Emory Healthcare (404) 712-2879 - Office 12674 - PIC [EMAIL PROTECTED] >>

Read a file directly from system call?

2002-09-26 Thread Bill Akins
tem("unzip $myfile1 doc.txt"))); Any clues? Thanx! Please reply directly and to list. Bill Akins, CNE Sr. OSA Emory Healthcare (404) 712-2879 - Office 12674 - PIC [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: excel

2002-07-26 Thread Bill Akins
See http://www-106.ibm.com/developerworks/linux/library/l-pexcel/ for a good article on perl and Excel. Bill Akins, CNE Sr. OSA Emory Healthcare (404) 712-2879 - Office 12674 - PIC [EMAIL PROTECTED] >>> [EMAIL PROTECTED] 07/26/02 10:40 AM >>> On Jul 26

Re: Controlling Novell products with Perl

2002-06-13 Thread Bill Akins
I would also be interested in seeing what others have come up with. Bill Akins, CNE Sr. OSA Emory Healthcare (404) 712-2879 - Office 12674 - PIC [EMAIL PROTECTED] >>> "Nigel Peck" <[EMAIL PROTECTED]> 06/13/02 04:03AM >>> Does anyone have experience o

Re: reading and parsing from STDIN

2002-05-24 Thread Bill Akins
stead. } } Now $EMAIL should contain [EMAIL PROTECTED] or list of emails pulled from input. Bill Akins, CNE Sr. OSA Emory Healthcare (404) 712-2879 - Office 12674 - PIC [EMAIL PROTECTED] >>> lz <[EMAIL PROTEC

Regex, search until second digit

2002-05-17 Thread Bill Akins
Hello all, I have a var, $DOC_NAME, holding a file name. I need to get the first part of the variable into another variable. Some examples are A98-12345, SO-02-789, P-99-029833 and GQE-37-2199. Examples: A98-12345, I need A98 SO-02-789, I need SO-02 P-99-029833 I need P-99 GQE-37-2199 I need G

Re:Question in perl syntax

2002-05-14 Thread Bill Akins
How about something like this: if (($s_field >= 1) && ($s_field <= 10)) { do something; } else { do something else; } >>> Jaishree Rangaraj <[EMAIL PROTECTED]> 05/14/02 04:58PM >>> Hello I have a value say "$s_field". I have to see if this matches with in the ra

RE: creating custom switches in my program?

2002-03-05 Thread Bill Akins
I have found this testing harness to be very helpful. Perhaps this will help you understand options better than just a snippet as this incorprates many options... HTH! Bill A. -Original Message- From: M z [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:26 AM To: [EMAIL PROT

renaming files (versioning)

2002-02-19 Thread Bill Akins
Hi all, After processing files in my perl script, I need to move them to the final destination. My problem is if the file already exists (lets call it data.txt), I need to rename it to data-v01.txt (where -v01 is version 01). So... if there are four other esisting versions, data-v03.txt should

help with extracting text from a string

2002-02-14 Thread Bill Akins
Hi all, I have a string that is read in and assigned to a veriable. String looks something like this: 10.00 c$cpi c$ul (Sample Number:) c$sh /Courier 0 c$fnt ( SA-01-0C8A8) c$sh ( ) c$sh /Courier 0 c$fnt I need the string between the second set of ()'s. There may or may not be a leading s

Re: help for sed

2002-02-06 Thread Bill Akins
I believe Perl has all of the funtionality of sed so why not use the substr() function? I have not tested it and I'm sure others here can do this in one line, but couldn't you do something like this? if ($string =~ / >>/i) { $ll = (length($string) - 3); $string = substr($string, 1, $ll); } Wit

RE: Writing to a file

2002-01-31 Thread Bill Akins
For others who may want to see how module works... Here is a snippet of code I used with the Write:Excel module... Was written and run on WinNT without Excel installed on the box. It reads in csv files into Excel file and then sets some limited formatting (freeze panes and set column widths).

Re: Writing to a file

2002-01-31 Thread Bill Akins
There is a great article you can read about using Spreadsheet::WriteExcel and Spreadsheet::ParseExcel modules. It can be found here: http://www-106.ibm.com/developerworks/linux/library/l-pexcel/ HTH! >>> "Lance Prais" <[EMAIL PROTECTED]> 01/31/02 12:45PM >>> I have a question regarding writing

Copy a portion of a file to a new file?

2002-01-29 Thread Bill Akins
Hi all, I would like to read in a file and print out to a new file UNTIL I reach a key word in the file. I tried something like while (<>) { if !/KEYWORD/; print $ >> dest.txt; } but that seems to copy all lines of the file except the one(s) contining KEYWORD. How can I have this exit and clo

Select all files in a dir for processing?

2001-10-18 Thread Bill Akins
Hello All, OK, I'm very new to Perl, so please don't flame me! I need to read in every file in a dir into a new file. I can do it like below if I know the file names, but how can I specify *.CSV? Actually there will be only the data files I need to read in the dir so *.* would work as well. P