RE: Assistance with Spreadsheet::WriteExcel Formula

2007-02-12 Thread Nichols, Ron
for the feedback. Ron Nichols Ronald G. Nichols Director of Information Technology Knouse Foods Cooperative 717 677-7111 Ext. 3470 [EMAIL PROTECTED] -Original Message- From: Lyndon Rickards [mailto:[EMAIL PROTECTED] Sent: Saturday, February 10, 2007 1:33 PM To: Nichols, Ron Cc: Perl

Assistance with Spreadsheet::WriteExcel Formula

2007-02-09 Thread Nichols, Ron
I am generating a spreadsheet using Spreadsheet::WriteExcel. Everything is working fine except a formula containing =SUMIF(A5:A10, C15,C5:C10). The formula gets generated correctly in the spreadsheet but in order to get the resulting value to be displayed in the cell, you have to edit the cell

Printing to Network Printer

2006-07-28 Thread Nichols, Ron
I have a PERL script that prints to a network printer on a Windows XP Professional OS. The script will be used on a variety of XP systems with varying network printers as the default printer. When I run the code shown below: #! perl -w use strict; my $port='9100'; my

RE: Printing to Network Printer

2006-07-28 Thread Nichols, Ron
The selected printer is the default printer for my system. I can print from any other windows based application to the default printer. I am also set up as the local administrator on the system. Ronald G. Nichols Director of Information Technology Knouse Foods Cooperative, Inc. [EMAIL

RE: Printing to Network Printer

2006-07-28 Thread Nichols, Ron
, your best bet would probably be Net::LPR. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nichols, Ron Sent: Friday, July 28, 2006 8:22 AM To: Perl-Win32-Users@listserv.ActiveState.com Subject: Printing to Network Printer I have a PERL script that prints

Re: Tk

2006-04-13 Thread Ron Hartikka
=$mw-Entry(-width, 60, -textvariable, \$author)-pack;$author=;MainLoop;# ___Perl-Win32-Users mailing listPerl-Win32-Users@listserv.ActiveState.comTo unsubscribe: http://listserv.ActiveState.com/mailman/mysubs-- Ron Hartikka[EMAIL PROTECTED

Re: HTML::Parser question

2002-09-26 Thread Ron Grabowski
use strict; use HTML::Parser 3.00 (); Thank you for posting some HTML::Parser code. For as long as I've been doing Perl I've only seen real HTML::Parser code a handful of times. People are quick to say just use HTML::Parser. If most people are anything like me, I just end up using some regexs

Re: Error with $Response-Flush()

2002-09-26 Thread Ron Grabowski
And as you mentioned the 256 bytes most definetely need to be sent before anything will flush. It is actually Internet Explorer that needs to receive 256 bytes before displaying anything. If you test your page with a different browser (like Mozilla), you'll see that the Flush() works with

Re: perl module for 'clicking' links??

2002-09-04 Thread Ron Grabowski
TC Winquist wrote: I searched CPAN for a module that would emulate clicking a link on a web page. Let's say I know that I want to click the link a href=r/foPhotos/a on yahoo's index page. I would like a script that would emulate that click and load the resulting page into the web browser

Re: LWP and ASP Pages

2002-08-26 Thread Ron Grabowski
[EMAIL PROTECTED] wrote: I'm trying to test to make sure my web site is up by connecting to the admin web page of my application. The admin web page is an ASP page and whenever I set it up using: use HTTP::Request; use LWP::UserAgent; $filename = D:\\temp\\msi.html; $ua =

Re: easy user input interface into Perl

2002-08-26 Thread Ron Grabowski
the real/regular program will then use for input. It asks the user only two short text questions. Of course any of us would be quite happy You could check out Win32::GUI (see HTML under .../html/lib/win32) or maybe use Tk as an alternative GUI interface - except it may not be installed

Re: HTTP::Daemon --Send client autoproxy?

2002-08-26 Thread Ron Grabowski
How do I get the details of HTTP::Headers=HASH(0x1c5d150)? What does Data::Dumper say? use Data::Dumper; print Dumper $r-headers; Or just look at the keys: foreach my $key ( keys %{$r-headers} ) { print $key = , $r-headers-{$key}, \n; } ___

Re: How to do CDDB lookup via Win32 Perl?

2002-08-12 Thread Ron Grabowski
I'm having the same problem as described in the following post. Did anyone ever find a solution to this? Read this post again: http://aspn.activestate.com/ASPN/Mail/Message/1312188 Download this file: http://www.freedb.org/software/cddbidgen.zip Run this Perl code: --- use strict; use

Re: trying to understand how regex works

2002-08-12 Thread Ron Grabowski
open FOUT, /some/path/outputfile.txt; open FILE /some/path/inputfile.txt; open(FOUT, /some/path/outputfile.txt) or die(Error: $!); open(FILE /some/path/inputfile.txt) or die(Error: $!); whileFILE{ p=N; next if (/.*?\|value_garbage1\|.*?/ || /.*?\|value_garbage2\|.*?/ ||

Re: problem with djgpp/perl

2002-07-26 Thread Ron Grabowski
1. I downloaded perl542b.zip and csdpmi5b.zip This is a MSDOS/DJGPP port of perl 5.004_02.. The file dates to 1997. There have been many major revisions to Perl in the last 5+ years. Can't locate Socket.pm in @INC (@INC contains: C:\PERL\LIB\PERL5 Socket.pm has been a core ( i.e. it comes

Re: Split function

2002-07-15 Thread Ron Grabowski
I would like to split on either a double dash or a semi colon with one split using ( | ). $_ = 'Hello-world;how--are--you;today'; print join \n, split /--|;/; ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe:

Re: Split function

2002-07-15 Thread Ron Grabowski
Would it be only semantic to escape the semicolon, or could it cause a problem not to do so? I'm not asking to be picky, I really don't know. :) The semi-colon is not special unless you do something like this: m;foo|bar|\;; ___ Perl-Win32-Users

Re: Reading from a form

2002-07-09 Thread Ron Grabowski
my $q = new CGI; ## # Get the input read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); # Split the name-value pairs @pairs = split(//, $buffer); foreach $pair (@pairs) { ($name, $value) = split(/=/, $pair); $value =~ tr/+/ /; $value =~

Re: Is there a LPR Module

2002-07-05 Thread Ron Grabowski
PS I would settle for a free command line as well. http://www.weihenstephan.de/~syring/win32/UnxUtils.html ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: If..else scope problem?

2002-06-13 Thread Ron Grabowski
Here's a revised version of your code. It puts the data into a hash, whence you can retrieve it in any order you like (the output line at the end is just an example of one way). I just put everything into the hash and dealt with it later: --- use strict; use warnings; use vars qw(%H);

Re: Autocompletion in Perl ( Win 32 )

2002-06-11 Thread Ron Pero
For a different approach to this (if I understand what you are after), in the archives of this list, see the thread, Not so silly DOS question which started August 24, 2001. It is about how to make the tab key do autocompletes in a command line window. At 09:15 AM 06/07/02 +0530, [EMAIL

Re: Win32::IPROC or some other 'ps'

2002-06-10 Thread Ron Grabowski
I've looked in the 'usual' spot (http://www.generation.net/~aminer/Perl/) There doesn't appear to be anything on that website. Otherwise, can any suggest the best way to get a process listing on a Win2000 box via perl? I have a better script someplace but maybe this will do for the time

Re: How can we implement escape sequences in Perl ( Win 32 )

2002-06-05 Thread Ron Grabowski
I would like to implement the escape sequences like ( if the value is Perl, I'm not sure what you are asking. perldoc URI::Escape ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe:

Re: HTML in E-mail

2002-06-05 Thread Ron Grabowski
that somebody would actually get annoyed by the format of an e-mail. Sometimes when people use a client like Outlook, I'm unable to quote their message in my response. I don't think changing the font color to a pretty shade of blue or a non-standard Times New Roman font really adds anything. It

Re: Using both 'Benchmark' and 'strict'

2002-06-03 Thread Ron Grabowski
Is there a simpler way ? --- use strict; use Benchmark; timethese (-1, { one = 'my @one = (1..10); my @two = (11..20); scalar(@one);', two = 'my @one = (1..10); my @two = (11..20); scalar(@two), \n;' }); --- Benchmark: running one, two, each for at least 1 CPU

Re: Text::CSV and empty fields ???

2002-06-01 Thread Ron Grabowski
Michael D. Schleif wrote: When I do this: if ($csv-parse($_)) { @array = $csv-fields; } print scalar @array, \n; I get various values, because some fields in the CSV file are empty. What I want to do is get an array with empty fields, as

Re: comparing two arrays

2002-05-30 Thread Ron Grabowski
[EMAIL PROTECTED] wrote: I have two string arrays (say ar1 and ar2) and I would like to compare them to find out all the strings in ar1 that do not exist in ar2. What's the fastest and most efficient way to do that? I know I can use a couple of for/foreach but I am hoping that there is a

Re: Generating random numbers?

2002-05-28 Thread Ron Grabowski
I have seen a few ok random number generator snippets but none really look like they work too well. Take the two below arrays. http://search.cpan.org/search?mode=modulequery=random Some modules that may be of interest: Math::Random Math::TrulyRandom

Re: Set::Object

2002-05-27 Thread Ron Grabowski
I think it's just a matter of: my $s = Set::Object-new(['a','b']); That did it. Thank you. - Ron ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Problem with win32::OLE - please check this out

2002-05-24 Thread Ron Grabowski
I like to add this to Chuck's response: I recall reading someplace that many of the larger MS applications ( i.e. Word, Excel ) are not suitable to act as OLE servers in a production environment such as a webserver. I don't know if this applies to Outlook. I'll try to look on Google for where I

Re: IE/OLE - properties methods questions

2002-05-24 Thread Ron Grabowski
3) Instead of using Navigate to get a URL or file, can I use HTML that's stored in a scalar in my source code? Can you set the Document to an html string? my $ie = WIn32::OLE-new('InternetExplorer.Application') or die 'Can't create instance of IE'; my $html =

Re: Regex matching pairs?

2002-05-23 Thread Ron Grabowski
\fs20 Da biste } {\cs6\f1\cf6\lang \{#}RES_ID{\cs6\f1\cf6\lang #\}} odaberite Da biste If there are multiple \fs2 things on a line, you should be able to loop through either $extracted or $remainder to find then and extract the string. - Ron ___ Perl

Re: FAQ

2002-05-22 Thread Ron Grabowski
Yup - a decent faq and a reminder work rather well for most FAQ's assuming the users read some emails before posting and didn't subscribe just to ask a question. An auto-responder would be unpopular and put new users off, as I don't think there is a need for Yet-Another-FAQ. I think people

Re: connecting via perl to mysql on another windows 2000 box -

2002-05-16 Thread Ron Grabowski
Here is the situation. I have to connect to Mysql running on another windows 2000 box. I have never done this before. Do I set this up in the tables as another host and use the -h parm in command shell and the host parm in my perl scripts? or is there another way to do it? What happens

Re: More or Pager function is Perl

2002-05-16 Thread Ron Grabowski
This is what I use in a program that mimics the Unix head command: http://www.perl.com/language/ppt/src/head/ ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: HOWTO: break up a directory path name into components ...

2002-05-16 Thread Ron Grabowski
I have a subroutine splitFilename that I wrote that does this for me. It's been enhanced over time to include support for UNC, but this is the meat of that subroutine that handles directory/path/filename strings: Not to be a wet blanket, but isn't File::Basename part of the core? I looked

RE: initializing an array of 'records'

2002-03-18 Thread Ron Hartikka
If you... @the_data = (); ... then @the_data will be empty. Is that what you want? (When you say, ...clear everything out - reinitialize it so it is 'fresh'., you have failed to say what you want in 3 different ways.) Ron -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: How to sort Array of Hashes

2002-01-29 Thread Ron Hartikka
This is tested. Perl Cookbook Recipe 4.15. Sorting a List by Computable Field The date from stat is probably not what you want. - my $dir = 'C:\data\perl\programexamples'; change to your dir $|=1; opendir(DIR, $dir) || die can’t opendir $dir: $!; my @files =

RE: Q: How to sort Array of Hashes

2002-01-29 Thread Ron Hartikka
Unless I've been unfair, for small dirs, no_shwartz wins; for big dirs (~3000 files?), schwartz wins. Looks like you want to reserve schwartz for where calculating the value to sort by is more expensive than a hash lookup or where you have more than ~3000 elements elements. Maybe somebody could

RE: Q: How to sort Array of Hashes

2002-01-29 Thread Ron Hartikka
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Joseph P. Discenza Sent: Tuesday, January 29, 2002 2:54 PM To: Ron Hartikka; [EMAIL PROTECTED] Subject: RE: Q: How to sort Array of Hashes Ron Hartikka wrote, on Tuesday, January 29, 2002 2:40 PM : Unless I've been

RE: (no subject)

2002-01-21 Thread Ron Hartikka
try $counter-update; after $counter-configure(-text=$i); My guess is you are going to want to look at Tk's 'after' method. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of robozSent: Monday, January 21, 2002 11:01 AMTo: [EMAIL

RE: problem with eval

2002-01-15 Thread Ron Hartikka
Seems like a hard way to program! But, maybe it's right for your situation. Please post more if you can. What do you mean by "it didn't work"? Try printing the values returned by eval() - undefined value messageindicates bad code. -Original Message-From:

RE: problem with eval

2002-01-15 Thread Ron Hartikka
text. Ugh. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Venkataramana MokkapatiSent: Tuesday, January 15, 2002 9:16 AMTo: Ron Hartikka; thiyag; perl-win32-users Mailing ListSubject: Re: problem with eval d

RE: Regex Help Please!

2002-01-10 Thread Ron Hartikka
Works but not if you have more or fewer than 2 values in a row. Do you? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Wagner-David Sent: Thursday, January 10, 2002 1:31 PM To: 'Gordon Brandt'; [EMAIL PROTECTED] Subject: RE: Regex Help Please!

RE: Disable DisplayAlerts in Excel

2001-12-24 Thread Ron Rohrssen
I had this same problem a few months ago. I went through some old emails and this is how I resolved the issue at that time. $Excel-{DisplayAlerts} = 0; Ron -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Brian Shade Sent: Monday, December 24, 2001 7

RE: lwp memory leak

2001-12-09 Thread Ron Hartikka
As far as I know, perl does not free memory (back to the system); you can never shrink. You can avoid getting too big in the first place. You can restart (exec) yourself if you get to big. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of sunil matte

RE: dynamic variable evaluation

2001-12-05 Thread Ron Hartikka
as if as if you wrote... $values[2] = \$hash{\$x}{\$y}{'value'}; # contents is a string, not a ref to a hash What you plan to do with the string \$hash{\$x}{\$y}{'value'}? -Original Message- From: Ed DeBus [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 12:31 PM To: Ron Hartikka

RE: Regular expression help

2001-11-29 Thread Ron Hartikka
for $number (1006326869812, 563296853235993 , 35968322963568389){ print $1-$2-$3\n if ($number =~ /(\d*)(\d{4})(\d{5})/); } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 3:32 PM To:

RE: unlink(file)

2001-11-28 Thread Ron Hartikka
Do you have the file open? You cannot delete an open file according to Bill. open (JUNK, 'junkyfile.txt'); print JUNK STUFF IN junkyfile.txt\n; close JUNK; print `type junkyfile.txt`; unlink 'junkyfile.txt'; print `type junkyfile.txt`; ... prints... STUFF IN junkyfile.txt The system cannot

RE: Minimize Window

2001-11-28 Thread Ron Hartikka
I started task mgr manually. This worked. w2k. use Win32::GuiTest qw(FindWindowLike GetWindowText SetForegroundWindow SendKeys); $Win32::GuiTest::debug = 0; # Set to 1 to enable verbose mode my @windows = FindWindowLike(undef, Windows Task Manager, .); #print join \n, @windows; for

RE: How to omit lines from execution in a perl program

2001-11-12 Thread Ron Hartikka
Just remove the debug statements once and put them in a second script to be exec'd based on command line parameter. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Nick Djurovich Sent: Monday, November 12, 2001 12:45 PM To: PERLMAILINGLIST

outlook distribution list from recipient list?

2001-10-15 Thread Ron Hartikka
I have: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; I want an Outlook distribution list with these addresses. Outlook makes me do them one at a time. Can you do this in perl? If so how? Thanks. ___ Perl-Win32-Users

Re: external program and stdin

2001-07-03 Thread Ron Grabowski
I have an external program that I access with the back tick operator (`program.exe`) -it works fine, but I do not know how to send it certain parameters through stdin after it executes. For example what I really want to do is to execute the program, and then send it some data through stdin.

Re: Include statement..Boy am I a newbie

2001-07-03 Thread Ron Grabowski
In linux it automatically looks in the current directory. However, with windows, it looks to C:/Perl/lib or C:/Perl/site/lib . All versions of Perl look in the global array @INC to see which directories to look for files: perl -v Characteristics of this binary (from libperl): Locally

Re: format+Tk

2001-06-28 Thread Ron Grabowski
My PROBLEM: I want to insert a formatted test , I mean the resulting of the format command . if I use write every line will go on the STDOUT but I want to get all the columns well formatted inside the $TextMessage. I know it is not clearbut if you manage to understand what I am trying

Re: format+Tk

2001-06-28 Thread Ron Grabowski
My PROBLEM: I want to insert a formatted test , I mean the resulting of the format command . if I use write every line will go on the STDOUT but I want to get all the columns well formatted inside the $TextMessage. perlform lead me to this: --- use Carp; sub swrite { croak usage: swrite

Removing ACE's from Member Servers they are local member server groups

2001-06-24 Thread Ron LEVER
Help I have posted this problem to Admin list and on Roths perms news no one has been able to help yet. Ron The error code that I get is, 126 The specified module could not be found. ERROR_MOD_NOT_FOUND When the program tries to remove the second ACE. Does this help anyone, help me? Help I

RE: computations with backreferences

2001-06-18 Thread Ron Hartikka
Could you clarify the question. Example: If I get the input line ___ I want this output line ___. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dan Jablonsky Sent: Monday, June 18, 2001 2:32 PM To: [EMAIL PROTECTED] Subject: computations with

RE: @$_ works, so why doesn't %$_ ?

2001-06-14 Thread Ron Hartikka
Same with scalars... our $s1 = a; my %s2 = b; our $s3 = c; for my $it (qw(s1 s2 s3)){ print $it: $$it\n; } ... prints... Name main::s1 used only once: possible typo at scalersymref.pl line 2. Name main::s3 used only once: possible typo at scalersymref.pl line 4. Use of uninitialized

Re: @$_ works, so why doesn't %$_ ?

2001-06-14 Thread Ron
@list = (\%hash_one, \%hash_two, \%hash_three); Look at Making References and Using references in perlref. - Original Message - From: Peter Eisengrein [EMAIL PROTECTED] To: 'Carl Jolley' [EMAIL PROTECTED] Cc: Perl-Win32-Users Mailing List (E-mail) [EMAIL PROTECTED] Sent: Thursday, June

Re: A few uncivil remarks..........

2001-06-11 Thread Ron Grabowski
Lee Goddard wrote: I reckon PLEASE READ THE FAQ and a url should appear at the top of every AS post, not just a URL a the bottom No, not at the TOP! I don't need another thing to scroll down through before I get to something meaningful. Instead of just giving code, I like to refer

Re: A few uncivil remarks..........

2001-06-11 Thread Ron Grabowski
Just curious... since this was not a response but rather a new thread, was there a particular offense that got your underwear in a bunch, or did you just wake up a bit cranky? The problem is that some people refuse to look for information on their own. I can't tell you how many times this

Re: Hex bytecount??

2001-06-11 Thread Ron Grabowski
# here I need to get contents of $ray[0x209] in DECIMAL so I can know how many following bytes are relevant. Thoughts... options?? How many bytes long is the length word ? It sounds like he just wants $ray[ hex(0x209) ] but unpack does seem to make more sense that splitting each line

Re: Pass To Module

2001-06-11 Thread Ron Grabowski
As I am learning how to try and use modules today, I ran into a strange Eventually this entire list is going to be PerlEx experts thanks to Scott's posts :-) I know how frustrating it to do simply tasks with unfamiliar software. MY MAIN CALLING SCRIPT IN WHICH I WANT TO PASS HOST AND

Re: FTP Connections

2001-06-11 Thread Ron Grabowski
to the server if the connection is severed, currently I use WS_FTP (those who use this know what I mean). SmartFTP is a full-featured freeware FTP client that has its own scripting language: http://www.smartftp.com ___ Perl-Win32-Users mailing

Re: Wildcard matching of hash keys

2001-06-08 Thread Ron Pero
; } } return 0; } Ron At 03:14 PM 06/08/01 +0100, Martin Moss wrote: All, Has anybody done any work with wildcard matching of hash keys? along the lines of my $pattern=*red*; if (exists($hash{$pattern})) #I { print Key exists\n; } Is the only solution

Re: Getting text from HTML pages

2001-06-08 Thread Ron Grabowski
my ($text)=$htmlstring=~/\p\(.*)/i; I think he wanted everything in the file. The Cookbook says: % perl -pe 's/[^]*//g' file ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Re: Assistance use Strict

2001-06-08 Thread Ron
I take back the last bit of my last post. I think you could say... my @lines = split /\n/, @{$rawDataRef}[ $#{ $rawDataRef }]; ... based on accessing and printing of Arrays of Arrays in camel 3. pg 271 - Original Message - From: Ron [EMAIL PROTECTED] To: Purcell, Scott [EMAIL

RE: RegEx: Finding and replacing all characters between ( and ) ?

2001-06-07 Thread Ron Hartikka
Charles, Can the () in your data be nested? If so, you can't use an re. (See: How do I find matching/nesting anything? in perlfaq 4.) For example, while (DATA){ print; print becomes\n; s/\([^\)]+\)/()/g; # as Bill suggests print; print \n; } __DATA__

RE: RegEx: Finding and replacing all characters between ( and ) ?

2001-06-07 Thread Ron Hartikka
asdf(as(asdf)df)asdf becomes asdf(as()df)asdf - so, while what? - -Original Message- From: Joseph P. Discenza [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 07, 2001 8:53 AM To: Ron Hartikka; perl win32 users Subject: RE: RegEx: Finding and replacing all characters

Re: Hash-of-hashes problem testing whether keys have values

2001-06-02 Thread Ron
Defined/Exists is NOT the issue here. To paraphrase 'exists' entry in Camel 3 (but not Camel 2 or online docs): When you say... if(defined (((or exists $Hash{'Key1'}-{'Key2'} {'Key3'}){... ... Perl autovivifies the hash references $Hash{'Key1'} and $Hash{'Key1'}-{'Key2'}. You need to say

Re: regular expression question

2001-05-31 Thread Ron
No regex in answer here but... Is this what you want? use File::Basename; $OK = c:\\temp\\test\\test1\\test2; $OK1 = dirname($OK); print dir of $OK is $OK1\n; - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 31, 2001 5:17 PM Subject:

Re: Interacting with COM+ w/ Perl?

2001-05-30 Thread Ron Grabowski
' We have the database so lets set the properties that we want. CompObject.Value(ConstructionEnabled) = True CompObject.Value(ConstructorString) = Chr(34) + Provider=SQLOLEDB;Driver={SQL Server};User ID=momma;Password=;DATABASE=BigDog;SERVER= strServer ; + Chr(34) Anyone heard of

Re: directory

2001-05-29 Thread Ron
use strict; # change this to a dir on your system my $some_dir = 'C:\My Documents\My Pictures\PowerPics'; # create dir handle DIR first opendir(DIR, $some_dir) || die can't opendir $some_dir: $!; # array of file names from DIR my @files = readdir(DIR); # do something with your data print join

Re: directory

2001-05-29 Thread Ron
From perlport document: = System calls accept either / or \ as the path separator. However, many command?line utilities of DOS vintage treat / as the option prefix, so they may get confused by filenames containing /. Aside from calling any

Re: directory

2001-05-29 Thread Ron
You can use / inside single or double quotes. You can use \ inside single quotes. You can use \\ inside double quotes. You can't use \ inside single quotes. (Not for a dir separator, anyway: Perl assumes you are starting an escape sequence) - Original Message - From: [EMAIL PROTECTED]

Re: directory

2001-05-29 Thread Ron
(SOURCE); } closedir(DIR); opendir(DIR, $some_dir) || die canft opendir $some_dir: $!; @dots = grep { /^\./ -f $some_dir/$_ } readdir(DIR); closedir DIR; - Original Message - From: Tanya Graham [EMAIL PROTECTED] To: 'Ron' [EMAIL PROTECTED]; perl win32 users [EMAIL PROTECTED] Sent

RE: directory

2001-05-29 Thread Wantock, Ron L.
, 2001 6:03 PM To: 'Ron'; perl win32 users Subject: RE: directory ok, for some reason if i hardcode it, it is fine. it won't work if i try and get it from STDIN. anyway, here is my program: #!/usr/bin/perl $dirname = 'C:/PerlExp'; opendir (DIR, $dirname) or die

Re: directory

2001-05-29 Thread Ron
Tanya, next if($file =~ /^.+$/);# from Tushar and... next if $file eq '.' or file eq '..'; # from me ... do the same thing. Unless you have a file called '...' or '...' :) Ron - Original Message - From: Kulkarni, Tushar (GEL, MSX) [EMAIL PROTECTED] To: 'Tanya

Re: Dictionary object problem with PerlScript ASP

2001-05-10 Thread Ron Grabowski
) . /PRE); See what that does. You might have to explicitly call -Item('foo')-Value or something. If the VBScript is working, I'd just use that. - Ron ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman

Re: Converting Word / Excel to PDF

2001-05-10 Thread Ron Grabowski
too. - Ron ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

RE: re-evaluate as a scalar

2001-05-03 Thread Ron Hartikka
You could use two, a function, instead of $two a scalar... for $one qw(a b c d){ print two(); } sub two{isn't this a nice $one!\n} prints... isn't this a nice a! isn't this a nice b! isn't this a nice c! isn't this a nice d! But, it's not pretty to embed the function call in a print

RE: re-evaluate as a scalar

2001-05-03 Thread Ron Hartikka
When I say, But, it's not pretty to embed the function call in a print statement, I mean you can't put a function call in a scalar. You can put it in the list to print. I haven't tried it, but I think you can put a tied scalar in a scalar and get the tied behavior, which is what you want.

[OLE] Preventing the IE splash screen

2001-04-20 Thread ron . wantock
Is there any way to prevent the Internet Explorer splash screen from appearing when you create a non visible instance of an IE OLE object? wantor ___ Perl-Win32-Users mailing list [EMAIL PROTECTED]

RE: [OLE] Preventing the IE splash screen

2001-04-20 Thread ron . wantock
Outstanding! M$ really hid that one didn't they. One correction for anyone following this thread. The key "Internet Explorer needs to be two words, as in HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Infodelivery\Restrictions Thanks Chuck, wantor -Original

RE: [OLE] Printing from IE

2001-04-18 Thread ron . wantock
Yes, I did try printing the page manually. When I print it manually, it does not print the blank page. I went through all the printer settings and didn't see anything that would cause a form feed, but I will double check them. wantor -Original Message- From: Jan Dubois

Re: Reading a file from point A to B

2001-04-16 Thread Ron Grabowski
my( $var ); while( ) { $var = $_ if ( m!SNML_BYLINE! .. m!/SNML_BYLINE! ) == 2; # Other line-by-line processing, if any, goes here. } For those who are boggled by that, its explained in the Cookbook: while () { if (/BEGIN PATTERN/ .. /END PATTERN/) { # line falls

Re: Having Problem with zero's dropping on left side of decimal placeHELP!

2001-04-12 Thread Ron Grabowski
$RECNUM = 0; $RECCOUNT = 0; while(! $RS-EOF) { for ( $i = 0; $i $Count; $i++ ) { $tmp = $RS-Fields($i)-value; $tmp =~ s/\s+$//; # trim trailing white space $amt = $tmp; # No datachecking here! To

Re: net::telnet

2001-04-11 Thread Ron Grabowski
$telnet-cmd("su"); su should require a password so normal users cannot arbitrarly becomeroot.

Re: Optional Arguments

2001-04-10 Thread Ron Grabowski
of null value to indicate that it would not be used. I have tried passing under, "", '', " I think undef is your best bet: Depth( undef, undef, 'True', undef ); sub Depth { foreach my $param ( @_ ) { print "$param\n" if $param; } } Depth($Dir,\%Files,'',15); The third

Re: The Perl Journal - Dead for good?

2001-04-10 Thread Ron Grabowski
Does anyone know if TPJ is officially "dead" ? When this discussion popped up on Slashdot I hurried up and ordered some back issues and recieved them a few weeks ( well more than a few ) later. As far as I know there aren't going to be any new issues published. Which is a real shame, that was

Re: Is there a better way to code my templating system?

2001-04-08 Thread Ron Grabowski
templating system to be called as an exec cgi on a Unix server. My concern is, am I creating too much overhead, in that the perl interpreter with load every time a page loads? Is this the smartest approach under these circumstances or am I missing something obvious (no suprise) that would

Re: Perl cleaning MS Word HTML

2001-04-06 Thread Ron Grabowski
Anyone who's looked at Word docs saved as HTML knows it's frankly terrible. I'm doing a lot of converting these HTML docs to XML, and wonder if anyone has any effective routines to do the job? If not, I'll try to get some stuff on CPAN (always fun).

Re: Question about displaying records from last to first

2001-04-06 Thread Ron Grabowski
@file = A; @file = reverse A; ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Re: Help with leading zeros!

2001-04-06 Thread Ron Grabowski
wallclock secs ( 4.17 usr + 0.00 sys = 4.17 CPU) --- I guess now its a question of is printf() two times slower than print()? My two cents... - Ron ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Re: Help with leading zeros!

2001-04-06 Thread Ron Grabowski
close STDERR; open (STDERR, "NUL"); That's what I wanted to do. timethese( 5000 , { 'NumsAsStrings' = 'for ( $i = "001"; $i lt "501"; $i++ ) {print STDERR $i}', 'NumsAsNums1' = 'for ( 1 .. 501 ) {printf STDERR "%03d", $_};', 'NumsAsNums2' = 'for ( $i=1; $i501;$i++)

RE: Grep Help

2001-04-04 Thread Wantock, Ron L.
Remember, the $ForVar1 is inside a regex. You need to write your wildcards in regex syntax foreach $ForVar1 ("ctr","e..","frm","fmx","i..","lgo" wantor -Original Message- From: Dirk Bremer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 11:37 AM To:

Re: regexp matching more unpredictable in ActivePerl?

2001-04-04 Thread Ron Grabowski
I am no regex expert, but maybe it has to do with the underlying regex engine (i.e. NFA, DFA etc) and the implicit/explicit greediness of that engine for the specific boxes used. Regardless of the implimentation of the engine, we should at least be getting the same results across different

Re: Term::ANSIColor

2001-03-17 Thread Ron Grabowski
?[1;34mThis text is bold blue. ?[0mThis text is normal. ?[33;45mYellow on magenta. ?[0mThis text is normal. in the dos box. Do I need to change something in my environment variables? This question was asked last week(?). Phillip noted that the DOS box needs an ANSI driver in order to know

Re: Problems sending a email with perl!!

2001-03-17 Thread Ron Grabowski
was sent with success but i'm not receiving the message i sent to me just Does Mail::Sender have a debug=1 parameter? Net::SMTP does. Perhaps you could look at the output from that or check the mail in the perl@ mailbox to see that none of the messages got returned.

  1   2   >