RE: Is there any other way to easily determine directories from filesother than using -d

2000-12-07 Thread Zoltan Celedes
> 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

Re: precendence issue

2000-12-07 Thread $Bill Luebkert
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

Re: precendence issue

2000-12-07 Thread Lee
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

RE: Is there any other way to easily determine directories from filesother than using -d

2000-12-07 Thread Cliff Lloyd
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

RE: dereferencing hash problem

2000-12-07 Thread Jesse Sookne
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

2000-12-07 Thread Jesse Sookne
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

dereferencing hash problem

2000-12-07 Thread Martin, James S.
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' =>

Re: precendence issue

2000-12-07 Thread $Bill Luebkert
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

Re: Question on Arrays and Push

2000-12-07 Thread Carl Jolley
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

Re: I can not see the TREES for the Forest! Someone please bring a AXE

2000-12-07 Thread Cassell . David
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

Re: Question on Arrays and Push

2000-12-07 Thread Philip Newton
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

RE: imageMagick

2000-12-07 Thread Charles Maier
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

Re: Net::SMTP

2000-12-07 Thread Philip Newton
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:

RE: Is there tool to format Perl Code?

2000-12-07 Thread Rubinow, Larry
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