Profiler for Windows

2001-11-20 Thread Gross, Stephan
Does dprof work on Windows? Does any profiler? How do you know from CPAN if a module is windows compatible or not? ___ Stephan Gross Loral Skynet 908-470-2388 [EMAIL PROTECTED]

Off-Topic (200%) - Where are you from?

2001-11-12 Thread Gross, Stephan
Metuchen, NJ, USA ___ Stephan Gross Loral Skynet 908-470-2388 [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Increment & Decrement Strangeness

2001-11-01 Thread Gross, Stephan
The following script: $a ="X"; $a++; print $a; $a--; print $a; prints Y -1 Why does the autoincrement work in the + direction but not in the -? How do I get the letter before "Y" back? Is this a Perl bug? ___ Stephan Gross Loral Skyn

Set Excel Print Area from Perl?

2001-11-01 Thread Gross, Stephan
I have a Perl program that creates an Excel spreadsheet. I need to set the print area from within my program. According to what I can dig up on VB, the command is ActiveSheet.PageSetup.PrintArea = Selection.Address How do I translate that into Perl? _

RE: Why doesn't RETURN work?

2001-10-24 Thread Gross, Stephan
nesday, October 24, 2001 9:59 AM To: 'Gross, Stephan'; 'Beginner Perl' Subject: RE: Why doesn't RETURN work? Hi, 'if ($a = $b)' is not comparing $a to $b, it is assigning the value of $b into $a If you want to test for numeric equivalence, use two '=

Why doesn't RETURN work?

2001-10-24 Thread Gross, Stephan
I have a subroutine sub xyz { if ($a = $b) { return; } } When I run this in the debugger, it stays frozen on the RETURN statement. Shouldn't the RETURN break out of the xyz subroutine? Also, this used to work until I made some changes. Am I missing something obvious?

Regular Expression Help

2001-10-19 Thread Gross, Stephan
I'm matching a SQL date like this: $ftime =~ /(\d+)-(\d+)-(\d+)\s+(\d+):(\d+):(\d+)/; If $ftime is "2001-05-13 11:53:00", then $1 is "2001", $2 is "05", etc. However, I also want to match if the user types in a partial string. For example, if $ftime is "2001-12-18", I want $1, $2 and $3 to

What OLE-excel command do I use from Perl to change the font?

2001-08-17 Thread Gross, Stephan
What OLE-excel command do I use from Perl to change the font? ___ Stephan Gross Loral Skynet 908-470-2388 [EMAIL PROTECTED]

RE: cleaning up forwarded, inline email messages with Perl?

2001-07-17 Thread Gross, Stephan
Text::Autoformat was featured in the last issue of The Perl Journal (which is unfortunately not on-line at the moment). For a third-party (and free!) tool, try eCleaner at http://members.tripod.com/schin26/index.htm. ___ Stephan Gross Lo

Perl & Outlook/Exchange

2001-07-05 Thread Gross, Stephan
I'd like to write a Perl application that will tell me how many messages are sitting in an Exchange mailbox. Implementations of both POP3 and IMAP can query a mailbox given the username and password. The problem is that I have several mailboxes all using the same user account. Outlook can do th

Arrow Notation Question

2001-06-27 Thread Gross, Stephan
I'm using Win32::GUI. I create a text field and call it $TextField. The user inputs some text, say "abc". If I say print "$TextField->Text"; I get Win32::GUI::Textfield=HASH(0x23762b0)->Text If instead I say $x = $TextField->Text; print "$x"; I get abc Why the differenc

Perl Style Question

2001-06-26 Thread Gross, Stephan
Why is this style if ($x) { do this; do that; } typically preferred over if ($x) { do this; do that; } I like the latter example because it's easier to cut and paste the braces and everything in between. I also think it looks better. But none of the top programmers ever see

When to use "my"?

2001-06-15 Thread Gross, Stephan
One of the things I've been struck by on this list is how often the "my" declaration is used. For example, I never would have thought of foreach my $i (@data) What are the advantages to doing this? A while back someone showed that it could speed up execution. Why would this be? Just curious,

RE: Win32::MsgBox syntax

2001-06-11 Thread Gross, Stephan
from http://www.le-berre.com/perlxtd.htm MsgBox function Display a message box. Syntax MsgBox($Message,$Type,$Caption); $Message Text to be displayed in the dialog box. $Type Defines the type (Icon & Buttons) of the message box. To define the value sum the desired

Multiple email addresses

2001-05-30 Thread Gross, Stephan
I figured out how to look at email through the Net::IMAP::Simple module. I now have a deeper question. I have one account that several different email accounts are tied to. For example, user account 'xyz' has mail at [EMAIL PROTECTED] , but there are other Exchange e

Email question

2001-05-30 Thread Gross, Stephan
I'd like to a write a program that would tell me, for several specific accounts/mailboxes on a Microsoft Exchange server, how many emails are there. I can use either POP3 or IMAP protocols. Any suggestions or pointers? ___ Stephan Gross

Regexp Question Again

2001-05-11 Thread Gross, Stephan
I wasn't clear last time. I wrote: >I want to match the following: >1) the letters "PT" >2) a space or nothing >3) a word that may or may not be in parentheses or even not exist >and return item #3 (which may be null) >Example: >PT (XYZ) or PT XYZ or PTXYZ or PT >should return "XYZ" except the la

Regexp Question

2001-05-10 Thread Gross, Stephan
I want to match the following: 1) the letters "PT" 2) a space or nothing 3) a word that may or may not be in parentheses or even not exist and return item #3 (which may be null) Example: PT (XYZ) or PT XYZ or PTXYZ or PT should return "XYZ" except the last case, which should return "". I can do