RE: Removal from list

2002-02-12 Thread McCollum, Frank
: McCollum, Frank; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Removal from list Where is the FAQ? --- "McCollum, Frank" <[EMAIL PROTECTED]> wrote: > I am trying to also. They request that you try all > the options in FAQ, > which I have yet

RE: Removal from list

2002-02-12 Thread McCollum, Frank
I am trying to also. They request that you try all the options in FAQ, which I have yet to read. So many emails, and so little time. -Frank -Original Message- From: James Lucero [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 11:11 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTEC

Cannot SendMail

2002-02-08 Thread McCollum, Frank
Maybe there is a perl solution to this problem.maybe not. I have a distribution list with several hundred names in it (now these names are in the format "Perl Beginners" not "[EMAIL PROTECTED]" and I cannot figure out how to tell Outlook to give me the fully qualified adresses - That

RE: print over prior print

2002-02-08 Thread McCollum, Frank
in perl... $count++; print "${count}\r"; -Original Message- From: Jesse Ahrens [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:12 PM To: [EMAIL PROTECTED] Subject: print over prior print I recall doing this in C a long long time ago, but I've forgotten most of my C. Is it

RE: Other ways to send mail with perl?

2002-02-08 Thread McCollum, Frank
postie.exe is a great tool. I use it with perl scripts a good bit, because it allows so many options. Any search on the web will turn up a copy. I am pretty positive it is freeware too. -Original Message- From: Nikola Janceski [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002

RE: Hash Question

2002-02-01 Thread McCollum, Frank
Where might one find this 'tutorial'? -Original Message- From: Dave Benware [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 2:44 PM To: Beginners perl Subject: Re: Hash Question "Balint, Jess" wrote: > > Since this is a beginners list, I thought I would be allowed to ask t

RE: File::Find on Win32 -- Directory Permissions Denied

2002-01-30 Thread McCollum, Frank
riginal Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 4:46 PM To: McCollum, Frank; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: File::Find on Win32 -- Directory Permissions Denied The script is not intended to run on an internet(server) env

RE: File::Find on Win32 -- Directory Permissions Denied

2002-01-30 Thread McCollum, Frank
I do not see that problem as long as 'I' (read user) have permission. You can always use the CACLS Windows system command to change permissions, but there is usually a good reason not to. Is the perl script running on a server? Does the server have permission to be in the folder? -Original

RE: saving source of a page to a file

2002-01-30 Thread McCollum, Frank
There are very many ways to do this in perl. Go to CPAN.org or perldoc and search under LWP, Treebuilder, HTML, etc. for overwhelming information. Documentation for these is pretty straightforward. -Original Message- From: rory oconnor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January

RE: printf using a variable for the field size

2002-01-30 Thread McCollum, Frank
try ... if ( ! $size ) { $size = 8 } printf " %${size}s ", $yourVariableHere; ?frank -Original Message- From: Nikola Janceski [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 4:21 PM To: '[EMAIL PROTECTED]' Subject: printf using a variable for the field size I am trying

RE: File::Find and Platform Capability

2002-01-30 Thread McCollum, Frank
I do not have a good grasp of File::Find, but I found a way that works and just go with it... find(sub {push @files, $File::Find::name if -f}, '.'); #grabs all files find(sub {/$ord/i && push @files, $File::Find::name if -f}, '.'); #grabs files whose name matches $ord Files a

RE: How do I read a web page from within perl?

2002-01-30 Thread McCollum, Frank
There are several Modules to make this easy at CPAN.org. Check out HTML::TreeBuilder in particular, and TableExtract is very useful for tearing numbers (for instance) out of various tables. -Frank -Original Message- From: Collins, Joe (EDSI\BDR) [mailto:[EMAIL PROTECTED]] Sent: Wednesda

RE: What is the newline character (\n) equal to?

2002-01-30 Thread McCollum, Frank
I am not sure if they are platform dependent or not, but CRLF is Carriage Return + Line Feed, and LF is Line Feed. '\n' I would think is most like a Line Feed and '\r' is a carriage return. right? -Original Message- From: Dave Benware [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January

RE: Perl path for windows 98

2002-01-29 Thread McCollum, Frank
Sure. Assuming perl is in the default location type "#!C:/Perl/bin/Perl.exe" If this does not work Alternatively, go to My Computer -> View -> File Types -> Add a new type -> Call it Perl -> specify ".pl" as extension -> Add an action called "Open" -> then "C:\Perl\bin\Perl.exe "%1" %*" in t

RE: Remain Days of Month & Leap Year Question

2002-01-29 Thread McCollum, Frank
I've never done this, but it seems to me it would be nice to set up the days per month in a little hash table. %calendarDays ( january => 31, february => 28, ) #or should the order be reversed? I'm not that familiar with Hashes. Then have a check in there that grabs the date (see previous e

Matching for filenames with spaces in them?

2002-01-28 Thread McCollum, Frank
I asked this earlier but got no response, so all that is different is the subject. Surely, there is some one in this group who can answer this seemingly simple problem! -Frank > I am guessing that the spaces are the problem, because if I put the same > string in the Windows Find tool, I get t

RE: Globbing for files with spaces?

2002-01-28 Thread McCollum, Frank
> I am guessing that the spaces are the problem, because if I put the same > string in the Windows Find tool, I get the same unexpected results. I > have this code below and expect to get the file named... "Mortgage Market > Review Package (25 Jan 2002).pdf", but instead I get a single word, > "

RE: read source file of .html

2002-01-15 Thread McCollum, Frank
Depending on what you are doing... I have found a lot of great ways to pull out tables from HTML using HTML::TableExtract and LWP::UserAgent and HTML::TreeBuilder. I really haven't delved in to all of the libraries under HTML, but these have been greate. see cpan.org or perldoc for more info.

RE: gt

2002-01-15 Thread McCollum, Frank
yes. 'gt' is used for strings and '>' would be the numerical equivalent. lt = less than eq = equal ne = not equal -Original Message- From: Naveen Parmar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 2:03 PM To: [EMAIL PROTECTED] Subject: gt Is the following correct?

RE: 2 Questions

2002-01-14 Thread McCollum, Frank
1) if you open it from a shell and type "perl" infront of the file name it will keep it. 2) I could be wrong, but I think "" = nothing and "<>" = diamond operator which is used to take input. i.e. while (<>) { $_ = $firstLineOfFile } -Original Message- From: N

Retrieve file name into an array

2002-01-14 Thread McCollum, Frank
I have this chunk of code below, where I want to find a file name and add it to an array called @newFile. Note that only one file will ever match this search query, so there is no doubt that the right file will be retrieved (However, they usually prepend the file with a date/time stamp, so I wa

Returning values from the Find Function

2002-01-11 Thread McCollum, Frank
I am not getting the Find Function. (FILE::FIND). I have found all of these great examples on the web describing how to use the find function under the following two conditions... 1) You know the exact File Name you are looking for, or you just want a list of every file in a directory 2) You

RE: timestamp without the time

2002-01-08 Thread McCollum, Frank
I don't know what your timeStamp string looks like, but if it looked like: 1/8/2001 18:00 ( $date, $time ) = split; would separate the two. The default split here is on any whitespace. To specify some other split you would do it as follows: split/:/; (where it would split on ':'). -Origi

RE: Perl module to operate on MS Excel files

2002-01-08 Thread McCollum, Frank
I currently use the below, but I have had problems with it running out on a server that I have not been able to determine the cause of. Sometimes no Excel file is produced, and other times, voila. It works everytime locally. if ( $outputXls ) { $filename = $outputFilename . ".txt"

RE: If...Statement

2002-01-08 Thread McCollum, Frank
I am not sure, but I think it has to do with $nextline=$line++; It sounds like $line is a text string and you are autoincrementing it here? Maybe what you really want is $nextline++; to count the number of lines? -Original Message- From: Lance Prais [mailto:[EMAIL PROTECTED]] Sent: Tues

RE: rand() function

2002-01-07 Thread McCollum, Frank
I did a random sampling of 10,000 random numbers in two separate groups : for (0..1) { print rand()."\n" } It seemed to consistently revert towards a mean of 0.50 (i.e. results(1) = 0.503; results(2) = 0.498). I also broke those into groups of 100 and seemed to get the same results. That

RE: global substitution

2002-01-07 Thread McCollum, Frank
4:04 PM To: McCollum, Frank Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: global substitution On Jan 7, McCollum, Frank said: >$record =~ s/[\.\-]//g; Neither of those two slashes are needed. >if it is a '.' or a '-' replace it with nothing. >Actually, I don't

RE: global substitution

2002-01-07 Thread McCollum, Frank
$record =~ s/[\.\-]//g; if it is a '.' or a '-' replace it with nothing. Actually, I don't even think the [] is necessary, so it could just be: $record =~ s/\.\-//g; -Original Message- From: Scott [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 4:02 PM To: [EMAIL PROTECTED] Su

RE: substitute all non-digits with ''. I think I saw this posted recently, but I could not find it...

2002-01-07 Thread McCollum, Frank
Aha. That is very familiar. Thx. -Original Message- From: Tanton Gibbs [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 2:54 PM To: McCollum, Frank; [EMAIL PROTECTED] Subject: Re: substitute all non-digits with ''. I think I saw this posted rec ently, but I could n

substitute all non-digits with ''. I think I saw this posted recently, but I could not find it...

2002-01-07 Thread McCollum, Frank
I want to take all non-digits and drop them out of my string. I would think it would be something like... s/!(\d+)//; but this is not the case Frank McCollum Bank Of America Securities, LLC [EMAIL PROTECTED] (704) 388-8894 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

RE: date compare problems

2002-01-07 Thread McCollum, Frank
the &ParseDate, and &Date_Cmp are looking for subroutines that would split the dates up, it appears. So, I would expect your code to include a subroutine similar to this: sub ParseDate { ($month,$day,$year) = split /\//; } but much more detailed to handle different types of date strings. -Frank

@$

2002-01-07 Thread McCollum, Frank
What does the "@$" sign indicate? I have a value in @$row in the code below that I want to strip out any html tags. I tried to use "s/\<*\>//g;" but it gives me an error ("Can't modify array deref in substitution"). foreach $ts ($te->table_states) { print "Table (", join(',', $ts->coords),

Adobe modules - append/'merge' pdf files

2002-01-07 Thread McCollum, Frank
I would like to move some VB6 modules that 'merge' adobe pdf files together, into Perl. I cannot find anything on this. Does anyone have any experience with this? To everyone who helped me out over the weekend when I thought I destroyed my laptop with the linux install (Especially the little tid

RE: not perl, but need some help with Linux...

2002-01-06 Thread McCollum, Frank
Yes, I am trying to get Linux on here, and Windows is completely gone. I formatted the C: drive. I keep getting this error when I try to autoboot from the linux cd, "Kernel panic: VFS: Unable to mount root fs on 09:02". Any thoughts? -Original Message- From: maximilian sichart [mailto:

not perl, but need some help with Linux...

2002-01-05 Thread McCollum, Frank
Does anyone know where to get help if you destroy a computer while installing Linux...? Problem (of course this comes up after formatting c: drive and using a boot disk) 1. Linux autoboot.bat program detects windows running and will not install (of course windows is not running, though) 2. Window

RE: delete one column in table

2002-01-05 Thread McCollum, Frank
if you cannot ALTER TABLE, I find it quicker to do it as below (using Dave's example...): SELECT col1,col2 into tempTable from exampleTable This leaves off col3 data and retains formatting information for other columns, then you can do this: DROP exampleTable SELECT * into exampleTable from tem

RE: remove spaces before and after . . . howdoi?

2002-01-03 Thread McCollum, Frank
>while (){ >$line = $_; >chomp($line); This can be shortened a few ways. i.e. chomp ($line = $_); There is probably a better way to get rid of the whitespace, but the only one that comes to mind is: s/^s+|s+$//; #replace any leading or ("|") trailing whitespace. -Frank -Original

RE: move

2001-12-31 Thread McCollum, Frank
I think 'system("mv", "/dir/file", "/dir2/file");', will only work if you have access to unix functions. system("mv", "/dir/file", "/dir2/file"); > -Original Message- > From: Michael McQuarrie [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 31, 2001 10:51 AM > To: [EMAIL PROTECTED]

RE: move

2001-12-31 Thread McCollum, Frank
I think the rename function is what you're looking for: rename "old", "new"; -Original Message- From: Michael McQuarrie [mailto:[EMAIL PROTECTED]] Sent: Monday, December 31, 2001 10:51 AM To: [EMAIL PROTECTED] Subject: move I'm sure this is a dumb question. It seems like one anyways.

RE: @INC

2001-12-28 Thread McCollum, Frank
Rob Hanson sent this to me the other day when I asked a similar question. I had been using "-I C:/Path/Of/Library/" (I was later informed that this was more for use when using in-house modules) in the first line of my scripts, but he listed some alternatives that maybe more appropriate - see belo

RE: Good CS Literature

2001-12-27 Thread McCollum, Frank
Learning Perl - O'reilly and assoc. is the best beginning programming book I have seen. Followed up with Programming Perl The other O'Reilly books seem to be good (i.e. Visual Basic for Applications) I've just started with Teach Yourself C++, and so far it has not been helpful at ALL. Maybe I

RE: substitution

2001-12-26 Thread McCollum, Frank
related question: I want to strip out any '*' symbols as well, and replace them with a zero. So, I changed my code to reflect: $origFee =~ s/[%\*]/0/; It appears that it strips out the % successfully, but anywhere I have a '*' symbol just gets overlooked. Any thoughts? -Original Message--

RE: How to set @INC

2001-12-21 Thread McCollum, Frank
I never got a response for this, but I am pretty sure you can put the line below at the top of your script and it will search where-ever you would like... #!C:/Perl/bin/Perl.exe -I R:/SomeOtherDir/Frameworks/ Where the path after the '-I' tells the script to include this path as a 'search' path.

substitution

2001-12-21 Thread McCollum, Frank
I want to replace a '%' symbol in a given string, but this string is not $_. Maybe this is a stupid question, but how do you specify the variable that you want the substitution to go against?? i.e. s/%//; # replaces any '%' signs in $_ with nothing but, I want to replace any '%' signs in $iAmA

RE: CPAN and Perl

2001-12-20 Thread McCollum, Frank
And to get the file, John Krahn submitted an example below earlier tonight sub get_games_file { use Fatal qw(open close); use LWP::Simple; use HTTP::Status; my $URL = 'http://www.mcn.net/~kenpom/cbbgames.txt'; my $gamefile = '/home/jeff/games/myfile.txt'; my $rc = mi

HTML to text

2001-12-20 Thread McCollum, Frank
Does anyone know where to find resources on parsing textual content out of an HTML page? I am trying to grab values out of a table on a website. I can grab the table, but I am having trouble grabbing the actual values from it... Thanks Frank McCollum Bank Of America Securities, LLC [EMAIL PROT

HTML::Treebuilder

2001-12-19 Thread McCollum, Frank
I do not understand what is meant by 'depth' in this module (i've read the accompanying documentation, but I didn't follow it well). Does anyone know where a good description is? I basically want to go to a website and figure out what the 'depth' is of a given table on that site, so that I can

RE: Can I change built-in @INC in a perl installation

2001-12-19 Thread McCollum, Frank
I think I follow you. I want any user on a network to use the same set of Frameworks, so I use this at the top of my perl script.Here, everyone has the same server mapped to their R: drive, so we store many Frameworks and packages here. #! c:/perl/bin/perl -I r:/usr/rer/prod/current/FRAMEW~1

RE: testing input/loops

2001-12-18 Thread McCollum, Frank
you have code at the bottom that tells it to loop back to the beginning if your response is not equal to a value between 1 and 3. So, it would continue to do this until you entered a valid value - or am I misunderstanding the question? > unless ($response eq '1' || '2' || '3') { >

RE: Last line of file...

2001-12-18 Thread McCollum, Frank
I'm a beginner too, given, but alternatively, you could unshift the lines into an array and just check the last variable. This would allow you to reference the other lines later if there was more work to be done here. -Original Message- From: James Kelty [mailto:[EMAIL PROTECTED]] Sent:

ActiveState Perl causes all of my scripts using Sybperl modules t ofail?

2001-12-18 Thread McCollum, Frank
I have several scripts that use Sybase::DBLib that worked using previous versions of perl, but after installing the most recent ActiveState version, all of these scripts cause application errors. I've used fileMerge to compare all of the modules and see no differences, and I do not see a diff