> I tried the example and it takes just as long. What is needed is a command
> like "ls" or "dir" that brings back the characteristics of the
> file when it
> is reading the directory. Using the -d or -f takes long because I believe
> that it has to go back and reread the directory contents.
Try
Lee wrote:
>
> Parenthesis, man.
I don't think they will help in this case. :)
> Christopher Hahn wrote:
> >
> > Hello all,
> >
> > A colleague stopped by today to ask me a question
> > regarding this script:
> > ==
> > my $i = 1;
> > my $j;
> > $j = ++$i*$i--;
> > print "j is n
Parenthesis, man.
Christopher Hahn wrote:
>
> Hello all,
>
> A colleague stopped by today to ask me a question
> regarding this script:
> ==
> my $i = 1;
> my $j;
> $j = ++$i*$i--;
> print "j is now $j\n";
> ==
>
> In perl this returns 2, whereas in java or C it
I tried the example and it takes just as long. What is needed is a command
like "ls" or "dir" that brings back the characteristics of the file when it
is reading the directory. Using the -d or -f takes long because I believe
that it has to go back and reread the directory contents.
Is there a Wi
Sorry for the HTML versionPlain text version follows.
You've constructed your hash wrong, which is why you're not able to get the
data out of it.
The lines
%win2k_counters= {
'CommitedBytesInUse'=> "\\Memory\\ Committed Bytes In Use",
'MbytesAvail' =>
testing to see if this comes out in HTML or plain textplease ignore.
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
The following code produces this result:
"The key is HASH(0x3649f4) and the values is"
Of course I'd like to see the actual key name and value.. What am I doing
wrong?
Thanks,
James
%win2k_counters= {
'CommitedBytesInUse' => "\\Memory\\ Committed Bytes In Use",
'MbytesAvail' =>
Christopher Hahn wrote:
>
> Hello all,
>
> A colleague stopped by today to ask me a question
> regarding this script:
> ==
> my $i = 1;
> my $j;
> $j = ++$i*$i--;
> print "j is now $j\n";
> ==
>
> In perl this returns 2, whereas in java or C it returns 4.
>
> I
On Thu, 7 Dec 2000, Philip Newton wrote:
> Carl Jolley wrote:
> > To print one element per line, here is one method:
> >
> > print join("\n",@foo),"\n";
>
> Here's another:
>
> print join("\n", @foo, '');
>
> The latter form may also come in handy if you're building up a string, since
> y
bb wrote:
>I can not see why this code takes the TRUE condition:
>
> $junk = "a";
> if ($junk == "|") {
if ($junk eq "|") {
>print "I have found a good record!\n";
> }
> else {
>print "I have a bad record. \n";
> }
> exit;
Because you are doing a numerical comparison on str
Carl Jolley wrote:
> To print one element per line, here is one method:
>
> print join("\n",@foo),"\n";
Here's another:
print join("\n", @foo, '');
The latter form may also come in handy if you're building up a string, since
you can't say
$output = join("\n",@foo), "\n";
(Well, you c
I had problems doing this also.. and Jon Perkins offered :
If like me you're running an older 5.005 build of ActivePerl, you'll need to
download the following file:
http://www.activestate.com/PPMPackages/5.005/zips/Image-Magick.zip
Extract this to a temporary directory, change to this dire
Flynn, Timothy J wrote:
> Is there another smtp->command that I should be using to
> protect against this action, should I filter the ":", or
> should I use a different mail sending module.
You should terminate the header properly.
> for ($i = 0; $i < scalar(@EMAIL_LIST);$i++){
> $smtp = Net:
Wilson, Brent asked:
> Is there tool to format Perl Code? I have some pretty
> complicated scripts
> that could do with some formatting -- and I don't want to
> have do it by
> hand.
perldoc -q pretty
___
Perl-Win32-Users mailing list
[EMAIL PROTECTE
14 matches
Mail list logo