- 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"}
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
"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
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 @
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]
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;
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.
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 ---
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
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
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
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
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
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
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
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
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
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
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
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
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
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
22 matches
Mail list logo