Re: Easy One

2006-05-03 Thread Chris Wagner
At 06:12 PM 5/3/2006 -0700, $Bill Luebkert wrote: >Having said that, I would also say that $a and $b were a bad choice for >the sorting vrbls. Let's hope something more intuitive (special looking) >for Perl 6 - like a separate namespace/syntax for special vrbls (like >maybe $^a, $^b or some such).

Re: Easy One

2006-05-03 Thread $Bill Luebkert
Timothy Johnson wrote: >>my ($b, $c) = ($1, $2) if $a =~ /^(\D+)(\d+)/; > > > Don't do that! $a and $b are special variables used by perl for sorting > (and even if they weren't it would be bad form to use variables whose > names have no bearing on their contents). While $a and $b are special,

RE: Easy One

2006-05-03 Thread Chris Wagner
At 09:34 AM 5/3/2006 -0700, Timothy Johnson wrote: >Don't do that! $a and $b are special variables used by perl for sorting >(and even if they weren't it would be bad form to use variables whose >names have no bearing on their contents). Nah, they're not that special. $a and $b are only special

Re: Easy One

2006-05-03 Thread John Deighan
At 11:07 AM 5/3/2006, David Kaufman wrote: Hi Chris, Chris Wagner <[EMAIL PROTECTED]> wrote: > At 01:28 AM 5/3/2006 -0400, David Kaufman wrote: >> my ($b, $c) = ($1, $2) if $a =~ /^(\D+)(\d+)/; > > U can't combine a my and an if. Perl will go schizo. Sure "U" can :-) I use this type of constru

RE: Returning to a Worksheet where a hyperlink was used - in Excelwith Win32::OLE

2006-05-03 Thread Timothy Johnson
Nice. Here's the code in Perl (untested, but it should be the same). use Win32::OLE; my $xl = (Win32::OLE->GetActiveObject('Excel.Application') || Win32::OLE->new('Excel.Application')); $xl->Application->Goto({Reference => $xl->Application->Prev

RE: Easy One

2006-05-03 Thread Timothy Johnson
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Kaufman Sent: Tuesday, May 02, 2006 10:29 PM To: perl-win32-users@listserv.ActiveState.com Subject: Re: Easy One > my ($b, $c) = ($1, $2) if $a =~ /^(\D+)(\d+)/; Don't do that! $a and $b are specia

Re: Easy One

2006-05-03 Thread David Kaufman
Hi Chris, Chris Wagner <[EMAIL PROTECTED]> wrote: > At 01:28 AM 5/3/2006 -0400, David Kaufman wrote: >> my ($b, $c) = ($1, $2) if $a =~ /^(\D+)(\d+)/; > > U can't combine a my and an if. Perl will go schizo. Sure "U" can :-) I use this type of construct all the time, even with strict mode and

Re: Easy One

2006-05-03 Thread Chris Wagner
At 01:28 AM 5/3/2006 -0400, David Kaufman wrote: >my ($b, $c) = ($1, $2) if $a =~ /^(\D+)(\d+)/; U can't combine a my and an if. Perl will go schizo. -- REMEMBER THE WORLD TRADE CENTER ---=< WTC 911 >=-- "...ne cede malis" 0100 ___

Re: Returning to a Worksheet where a hyperlink was used - in Excel with Win32::OLE

2006-05-03 Thread Сергей Черниенко
Здравствуйте Glen, Monday, May 01, 2006, 11:47:28 PM, Вы написали: GP> I know that the user can get back to a Sheet from where they originally GP> clicked on the hyperlink ( that brought them to the current definition GP> page ) by executing: GP> Control-G It corresponds