Re: Creating multiple jpg's with TTF: weird behaviour

2002-12-02 Thread Sisyphus
- Original Message - From: "Eric Broens" <[EMAIL PROTECTED]> > $im->stringTTF($black,$font_header,12,0,35,16,"TEST"); > $im->stringTTF($black,$font_header,12,0,450,16,$count); > Try instead: @r = $im->stringTTF($black,$font_header,12,0,35,16,"TEST"); if(!scalar(@r)) {print "1:$@\n"}

Re: sorting version numbers

2002-12-02 Thread Randy Kobes
On Mon, 2 Dec 2002, Christopher Hahn wrote: > I am wondering what the perl-best-practice approach to sorting > version numbers might be. As well as the other suggestions, you may want to look at CPAN's Sort::Versions module. -- best regards, randy kobes

Re: sorting version numbers

2002-12-02 Thread Tim . Moose
"Is there an existing (semi-built-in?) solution to this problem?" I'm not sure if this qualifies as semi-built-in, but it uses only one "sort". @versions =("4.0.0.10", "4.0.0.9", "4.0.1.0"); @versions = sortVersions(@versions); print join "\n", @versions; sub sortVersions { # Works for

RE: sorting version numbers

2002-12-02 Thread Peter Guzis
I am not aware of any module to do this, but here is one way to do what you want. -- use strict; my @versions = ("4.0.0.10", "4.0.0.9", "4.0.1.0"); my $version = NewestVersion (@versions); print "The newest version is $version\n"; exit; sub NewestVersion { my @ver; map { push @

RE: sorting version numbers

2002-12-02 Thread Wagner, David --- Senior Programmer Analyst --- WGO
uncertain how you were getting the data, but here is one shot: my @MyData = qw(4.0.0.10 4.0.0.9 4.0.1.0); foreach my $MyKey(sort {$b->[1] <=> $a->[1] || $b->[2] <=> $a->[2] || $b->[3] <=> $a->[3] || $b->[4] <=> $a->[4]

Re: OLE/Excel graphing problem

2002-12-02 Thread cchupela
oops, sorry, thought I did... >>>$sheet->HasAxis->(xlCategory,xlPrimary) = 0; line 40 but anyway, I found an answer to my problem. Instead of the above line, I used $chart->Axes(xlCategory)->{TickLabelPosition} = xlNone;

Re: OLE/Excel graphing problem

2002-12-02 Thread Carl Jolley
On Mon, 2 Dec 2002 [EMAIL PROTECTED] wrote: > I've been playing with some code to populate an excel spreadsheet (office > 2k) with data, produce a graph, and export it as a gif. I've been trying > to figure out how to turn off the x-axis on the resulting graph, and > haven't been having any luck.

Re: Accessing Exchange OWA through perl-script

2002-12-02 Thread LViale - TiscaliNet
Title: Message Hi Jeff Thanks for your interest. I need this type of access because I'm often out of office, and from there I can only see my mailbox through OWA. I would extract messages from OWA, and create new PST messages with the same properties. Bye. Lorenzo - Original Message ---

RE: timed-out waiting for command prompt

2002-12-02 Thread Carl Jolley
On Sun, 1 Dec 2002, Atkinson, Paul (CRTRES) wrote: > >-Original Message- > >From: ibrahim [mailto:[EMAIL PROTECTED]] > > > >"timed-out waiting for command prompt at test1.pl line 5". Pleas help. > >$telnet->waitfor('/login: $/i'); > > Maybe the device you are talking to is sending you cont

sorting version numbers

2002-12-02 Thread Christopher Hahn
Hello, I am wondering what the perl-best-practice approach to sorting version numbers might be. I am looking at strings like "4.0.0.10", "4.0.0.9", "4.0.1.0", etc and I need to determine the "highest", in this case 4.0.1.0. Previous experience suggests splitting each of these into a list of num

OWA: Accessing Exchange OWA through perl-script

2002-12-02 Thread LViale - TiscaliNet
OWA: Accessing Exchange OWA through perl-script   Hi to all I need, if it's possible, to programmatically access Exchange 5.5 OWA through perl scripting. I would create a program to extract messages from OWA folders and put them into Outlook Personal Folders. Is it possible? Does an example

RE: Creating multiple jpg's with TTF: weird behaviour

2002-12-02 Thread Eric Broens
Bill, Thanks for the answer, but the behaviour is still the same. >closing the file should be sufficient. How can I close the font file? I guess I have to know the filehandle for it (I am new in perl and don't have any experience with related languages). At the other side when the same filehandl

RE: :Telnet on Win2K

2002-12-02 Thread Peter Guzis
All PC's in recent years should have ATX power supplies which enable functionality like this. Windows 2000 (and NT 4.0, with special provisions) support this as well. This works great locally, but to remotely power off a machine seems to take a bit more work. I did some searching and found a pro

RE: perlscript killing me

2002-12-02 Thread Nikko Odiseos
Seems like anytime I try to use "use " I get these errors.. Just adding "use CGI;" at the top of the script chokes. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Nikko Odiseos Sent: Monday, December 02, 2002 9:17 AM To: [EMAIL PROTECTED] Subject

perlscript killing me

2002-12-02 Thread Nikko Odiseos
I am using perlscript in an asp page that was working fine on one box for a couple months and I moved it to another. Now after running for several hours I get the error (below) on this page which makes no sense. Nothing changes if I bounce IIS but if I reboot the box, everything is fine for a fe

OLE/Excel graphing problem

2002-12-02 Thread cchupela
I've been playing with some code to populate an excel spreadsheet (office 2k) with data, produce a graph, and export it as a gif. I've been trying to figure out how to turn off the x-axis on the resulting graph, and haven't been having any luck. I created a macro in excel, looked at the resulting

RE: [Perl-unix-users] Help: On what OS am I running (determine platform)

2002-12-02 Thread Roman 'Ra' Melihhov
Sup, You can test $^O for the value if ($^O=~ /MSWin32/i) do windows I suggest you test the script on any target platforms to determine actual values Ra. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveSta

Help: On what OS am I running

2002-12-02 Thread Mundell, R. \(Ronald\)
Good Day All   Does any one know how I can determine on what OS a script is running? E.g. am I running on Solaris, windows HP or Linux?   Ronald Mundell Nedcor BG3 881-3751(011) 083407  

Closing an Excel spreadsheet?

2002-12-02 Thread Beckett Richard-qswi266
Guys, There was a thread not long ago about this, and I tried the solutions mentioned. I have also searched the web, and Google, and have found many "solutions" to this problem. Unfortunately none of them actually work! I'm using Win32::OLE to load and populate an Excel spreadsheet. The tests inv

RE: Tk buttons?

2002-12-02 Thread Beckett Richard-qswi266
Well, this is a first. No one on the list could help, but I just had a flash of inspiration, and solved it myself!!! This is so simple (which is why I thought of it!), you'll kick yourselves! ;-) FYI, just updating the status bar has the same effect as updating the main window, the button pops ou

Re: Tk buttons?

2002-12-02 Thread csaba . raduly
On 29/11/2002 23:57:14 perl-win32-users-admin wrote: >>From: Beckett Richard-qswi266 <[EMAIL PROTECTED]> >>To: [EMAIL PROTECTED] >>Subject: Tk buttons? >>Date: Fri, 29 Nov 2002 15:53:27 - >> >> >>When you click on a button to do a task, the button should stay "pressed" >>until the task comple

RE: timed-out waiting for command prompt

2002-12-02 Thread ibrahim
I already tried this way and I got the same error message. I am trying to connect to a network switch and extract all active ports with MAC address of workstations connected to them. The thing which I see it strange is this code used to work fin couple of time and then suddenly start to give the s