Re: Searching tecknical documentation

2004-11-16 Thread u235sentinel
Actually he wanted free documentaion not Oreilly stuff. It's not free last time I checked. If you want Oreilly stuff then try this: http://oreilly.com/ This is just what you want: http://www.mamiyami.com/document/oreilly/ On Tue, 16 Nov 2004 11:02:18 +0800 (CST) Stephen Liu [EMAIL

Re: cp command error check

2004-09-17 Thread u235sentinel
I believe you want to print $!. Give it a try. Hello This does not work. `cp $srcfile $dstfile`; || do { print cannot copy $srcfile to $dstfile; }; do is also execute if cp working fine. Whz is this so? The next thing I would like to know how I can print the cp's

RE: bundle install fails

2004-09-14 Thread u235sentinel
Looks ok to me. What you are probably seeing are the tests usually associated with the CPAN install. It may also find a new version the CPAN.pm module and upgrade it on the fly. It does that every now and then. I didn't see anything to worry about. Looks like the 'make install' worked just

Re: bundle install fails

2004-09-13 Thread u235sentinel
You might want to try downloading the binhex code and build it without cpan. I did find this during my google on ExtUtils::Command::MM It suggests the code is not stable. Might be the problem. It's not on your system and CPAN installs of it might be a problem.

Re: perl_mod

2004-09-13 Thread u235sentinel
Chris Devers wrote: On Mon, 13 Sep 2004, Patricio Bruna V. wrote: where i can start? Google? Amazon? Specific, concrete questions? Personally I started at the beginning. But that's me ;-) Seriously though. Perhaps starting at perl.apache.org. Also, there is the Oreilly book

Re: bundle install fails

2004-09-13 Thread u235sentinel
Thank you for your response. Sorry for the newbie question, but from where and how do install the Convert::BinHex code and build it? Thank you, again. James No worries. I usually go to cpan.org. Here is the direct link to the info page. Lots of good details on how it works.

RE: Secure Shell and system command

2004-08-30 Thread u235sentinel
I would run system commands with the backticks. That tells Perl to run the command and place the contents in the variable you defined. System OTOH returns if the command completed successfully (at least I believe that's what happened here). Moon, John wrote: Hello, I run the

RE: Serious question on using Perl or not...

2004-07-27 Thread u235sentinel
Personally I figured the original coder would join this list and respond (or at least respond). If he's really interested in Perl then more questions/answer would come. Silence get's his request dropped from my short term memory :-) Wiggins d Anconia wrote: Gregorie Hostettler wrote:

RE: setting the environment variables in perl

2004-07-27 Thread u235sentinel
Good point in fact Oracle (for example) recommends setting the environment before you even install Oracle. To do it any other way invites trouble and as Oracle would say, you're on your own :-) jason corbett wrote: How does one go about assuring that the environment variables are

Re: Serious question on using Perl or not...

2004-07-26 Thread u235sentinel
Several ways come to mind including hashs or possibly an array. If it doesn't have to stay in memory (I know he said memory.. just exploring options), it's always possible to setup maybe a DBM hash and write/pull off of that (Yes I know it was already mentioned... I'm agreeing with Wiggins

Re: pls help

2004-07-12 Thread u235sentinel
below. Take it or leave it. This is turning into a flame so I'll end is now. Regards. n Sun, 11 Jul 2004 12:54:30 -0600, u235sentinel [EMAIL PROTECTED] wrote: I agree. If they are a competent company then shallow knowledge of Perl will get him nowhere. I've been studying for almost a year and have

Re: pls help

2004-07-11 Thread u235sentinel
I agree. If they are a competent company then shallow knowledge of Perl will get him nowhere. I've been studying for almost a year and have written basic code (IMO) to accomplish a few things. In a recent interview I was asked about my Perl knowledge. They had a couple of basic questions

Re: Could people please use sensible subjects?

2004-07-11 Thread u235sentinel
Jenda Krynicky wrote: Here are a few subjects I've seen in the list lately: From [EMAIL PROTECTED] I simply delete them without a second thought. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Copyright Violation - RE: unique array

2004-07-02 Thread u235sentinel
Bakken, Luke wrote: How nice of you to decide this for O'Reilly. I think the local grocery store has made enough money for today, and I think I'll go in and take an apple. Why just an apple? Why not a big fat steak? It doesn't have to end there also, maybe I can come back for dessert later :-)

Re: How to call a perl script....

2004-06-25 Thread u235sentinel
Beau E. Cox wrote: On Thursday 24 June 2004 08:32 pm, Charlene Gentle wrote: You can use the 'system' command: ##--master-- ... my $rc = system perl slave.pl; ... Does this mean it runs in parallel with the parent Perl Program? Reading through Learning Perl 3rd Edition and I thought I

Re: 'system' and parallel execution (was: Re: How to call a perl script....)

2004-06-25 Thread u235sentinel
Wiggins d Anconia wrote: Not exactly, it has been forked and does technically run in parallel, however 'system' blocks your current process waiting for the child to finish, so your process is in fact running, but it won't be doing any work except for waiting for a signal from the child. There are

Re: 'system' and parallel execution (was: Re: How to call a perl script....)

2004-06-25 Thread u235sentinel
. Smith OhioHealth IT UNIX / TSM / EDM Teams u235sentinel [EMAIL PROTECTED] 06/25/2004 11:58 AM To: cc: [EMAIL PROTECTED] Subject:Re: 'system' and parallel execution (was: Re: How to call a perl script) Wiggins d Anconia wrote: Not exactly, it has been

Re: 'system' and parallel execution (was: Re: How to call a perl script....)

2004-06-25 Thread u235sentinel
Wiggins d Anconia wrote: perldoc -f exec Ok. makes sense. *** Since it's a common mistake to use exec instead of system, Perl warns you if there is a following­ statement which isn't die, warn, or exit*** I've pretty much decided it's either system or a filehande process for

Re: 'system' and parallel execution (was: Re: How to call a perl script....)

2004-06-25 Thread u235sentinel
Wiggins d Anconia wrote: It's dangerous to make blanket statements like this. Each is a tool that should be understood and applied in the right manner. I agree with this. Generally system would be the right fit for many of my Perl programs. However exec has it's place like any tool. That is

Re: A possibly stupid 'Perl' question?

2004-06-25 Thread u235sentinel
I haven't used it myself however I understand there is Active Perl for Windows available. I don't have any details but perhaps you could google for it or someone here could give you directions. Ron Smith wrote: I'm in a situation wherein I want to brush up on my 'Perl', but have no personal

Re: Glossary

2004-06-08 Thread u235sentinel
I agree. Also Perl for Dummies might help a bit. In the back there is a list of major commands typically used in Perl. The book was ok. Learning Perl 3rd Edition by Oreilly was better IMO. Karen, I realize I am not answering your question directly but may I suggest that you purchase

Re: Glossary

2004-06-08 Thread u235sentinel
Understood however I thought you were also lookinig for a glossary of Perl commands. The Perl for Dummies book has such a list in the back. Learning Perl doesn't have a list. Still... it's currently my favorite Perl book :D From: [EMAIL PROTECTED]: I agree. Also Perl for Dummies might

Re: hour -1 routine

2004-05-28 Thread u235sentinel
What have you tried so far? Perhaps we can help tweak the code. Anthony J Segelhorst wrote: I am trying to set up a script that will do the do a current time -1 routine. Examples: Current Time: mmddyy:hhss 052804:1030 Output: 052804:0930 Current Time: 052704:0015 Output: 052604:23:15 I think

Re: Perl vs PHP

2004-04-22 Thread u235sentinel
hehehe... You might be surprised. While IANACY (I an not a coder... yet!), I have dabbled with other languages. The last 6+ months I've been studying Perl programming intending to push into coding. I've seen code in other languages (C for example) and much of it looks very similar to Perl.

Re: Size checking?

2004-04-15 Thread u235sentinel
I am not sure HOW to do the file size check. (untested) if -s $filename 100 then print $filename greater than 100 bytes!; Something like this perhaps? If you also need the actual size then perhaps this will work (again untested) my $size_in_k = (-s) / 1000; print $_ is $size_in_k Kbytes;

Re: b in regexp..

2004-04-14 Thread u235sentinel
If I'm reading this correctly, you are trying to match a word at the end of a string. If that's the case then move the word boundary to the end of your match. print $ .\n if (/eat\b/); print $ .\n if (/gre\b/); Reading from the Learning Perl 3rd Edition on page 108: The \b anchor matches at

Re: s/// w/o RE

2004-04-14 Thread u235sentinel
Wouldn't it be this instead? substr $_, index($_, $ss), length($ss) = $rs; I was looking up substr and didn't see a fourth parameter. Didn't have a chance to try it either :-) Thx On Apr 14, 2004, at 2:06 AM, Bryan Harris wrote: A quick question for the wizards-- Will I do? Is

Re: s/// w/o RE

2004-04-14 Thread u235sentinel
That won't work. Because of precedence it evaluates to: substr $_, index($_, $ss), ( length($ss) = $rs ); Ok. I get it now. Didn't realize I was doing that :D perldoc -f substr I was looking it up in the Learning Perl 3rd edition. /me slaps Oreilly Still a great book. Should have

Re: New to perl ...

2004-04-13 Thread u235sentinel
What have you tried? Please post the code so we can help Bajaria, Praful wrote: Hello, I would like to swap the file name only and not the extension or the content. Example: There are two file : 1.jpg and 3.jpg output = 1.jpg becomes 3.jpg and 3.jpg becomes 1.jpg OR 1.jpg and 3.gif

RE: book suggestion for atypical beginner

2004-04-07 Thread u235sentinel
I started with the Learning Perl 3rd Edition and have moved to Perl Object, References and Modules both published by Oreilly. Been working with Perl code for a few months now. I also have purchased the Perl Cookbook. There are many great examples how to do something useful. Great books!

Re: using strict

2004-04-01 Thread u235sentinel
Does the following turn off strict for a vars? no strict vars; Could you also turn off strict for other things besides vars, refs and subs? Say for a subroutine (for example). Just curious. I've run into situations where I've come across badly maintained code and would like to do this for

Re: Find User Apache is running as

2004-03-28 Thread u235sentinel
I'm wondering if there is a perl module to read from the apache server status screen. Doesn't it tell you the server version running? Also, when you connect to a web server, doesn't it pass along this information also? Been awhile since I've worked with web servers (I'm still a perl noob

Re: Folder Clean-up

2004-03-15 Thread u235sentinel
I know this doesn't fully answer you question but I'm wondering, do you mean files that your users haven't accessed in 30 days? What if they are using it like once a week? I'm reading through the Learning Perl 3rd Edition and on page 159 there are a number of file tests available. If your

RE: Folder Clean-up

2004-03-15 Thread u235sentinel
Not the prettiest way but here is how I check if File::Find is installed: perldoc -X File::Find Like I said, it's not pretty. I figure there wouldn't be a doc on the machine if the module wasn't there. Bad presumtion I know. Still, maybe someone can help educate us. I'm a sorta

Re: Question regarding Perl on RH9

2004-03-11 Thread u235sentinel
Perhaps you can post the code so we can look at it? Or even a link where we can get it. I'm not familiar with that tool. Thx Not really a perl programmer but have used the perl utility mirror for a good number of years now. The problem I have is that mirror worked on RH8 but does not on

Module to pull Netstat summary information?

2004-02-26 Thread u235sentinel
Is there a CPAN module to pull netstat summary information from a system? Rather than run 'netstat -s', I was hoping to find some way within perl. What I basically want to do is generate a couple of reports from the summary output. ICMP and TCP information. If someone can point me in the

Re: Module to pull Netstat summary information?

2004-02-26 Thread u235sentinel
This works however I was hoping perl had a module so I didn't have to run a system application. I've been playing around with modules such as scp, telnet and ftp. I'm curious if there is one for netstat. thanks :-) I am still new to working with Perl myself but I think I know the anwer to

Re: switch statement

2004-02-19 Thread u235sentinel
In addition, I've been playing around with the 'use diagnostics' feature in perl. That's in addition to 'use warnings'. I don't recommend it for regular coding but when stumped it may help. On Feb 19, 2004, at 3:14 PM, Anthony Vanelverdinghe wrote: Hi Howdy. Could anyone please

Re: Script Kiddie issues

2004-02-09 Thread u235sentinel
Unfortunately this attitude is not solely American. We've been around for only 200 years and these problems seem to come from much MUCH further in the past from a variety of countries. Now back to the reason we are really here. Perl anyone ::grinz:: Lone Wolf wrote: Nah, because the only

Re: [OT] Re: Script Kiddie issues

2004-02-07 Thread u235sentinel
I've been holding off on responding to this thread but now I've dealth with security for some time on Unix/Linux systems. Some of my favorite products certainly have the ability to perform a counter attack however the author of those products always warn the user NOT to taunt happy fun

Re: Sending mails

2004-02-06 Thread u235sentinel
I'm still learning myself and haven't tried sending email's from perl scripts (yet). I did however notice one typo which might help you grab more info on what's going on. Check the below in your code. Change 'use warnigs' to 'use warnings' Hopefully it will help give you a bit more to go on.

Oreilly's Learning Perl 3rd Edition

2004-01-13 Thread u235sentinel
I'm nearly finished with this book (definitely excellent book!). Some items I need to review again (expressions will take some work). Afterwards I plan on moving upward and onward in perl. I'm curious if Oreilly's Programming Perl or Perl Cookbook would be good to jump into. Or is there

Re: stop

2004-01-07 Thread u235sentinel
After being part of this list for a month, I don't recall seeing more than just this email requesting removal from the list. Oh well. An amusing message. I see them all the time in the Linux mail lists I participate in. Pity people can't follow directions :-) Uhhh...at the bottom of every

Using perl to parse specific lines by date...

2003-12-26 Thread u235sentinel
While I've already done this with a simple shell script using grep, I was trying to figure out how I can do the same thing in perl. I have an access_log from my apache web server and while I can manually enter a date for my pattern match (which works fine), I can't seem to get it automated

Re: Using perl to parse specific lines by date...

2003-12-26 Thread u235sentinel
::grinz::) If there is a perl function that will populate a variable with today's date please let me know. I'll try the system/exec commands and cross my fingers :D Thx Randy W. Sims wrote: On 12/26/2003 5:39 PM, u235sentinel wrote: While I've already done this with a simple shell script

Re: Using perl to parse specific lines by date...

2003-12-26 Thread u235sentinel
in the first place. FYI... %e would have blank padded what I was looking for. The access logs in apache have the / between the month and day. The error logs however would have worked with %e since they space out the month day. Thx again!! John W. Krahn wrote: U235sentinel wrote: While

Re: Using perl to parse specific lines by date...

2003-12-26 Thread u235sentinel
weeks of perl coding So now I've learned a few new ways to pull stuff into perl. Thx guys! R. Joseph Newton wrote: u235sentinel wrote: While I've already done this with a simple shell script using grep, I was trying to figure out how I can do the same thing in perl. I have an access_log from

Re: Perl Help: Array Manipulation

2003-12-25 Thread u235sentinel
I'm a newbie to perl also. Been workign with it for a whole 2 weeks now. Actually.. make that 3 ::grinz:: Warning.. lengthy email below.. I beg forgiveness in advance :-) Ok. Here is what I did. #!/usr/bin/perl @array1[0..5] = 1; @total[0] = 0; for($i=0; $i4; $i++) { if($i == 0) {

Re: Perl Help: Array Manipulation

2003-12-25 Thread u235sentinel
But wouldn't the original initilization also work? @array1[0..5] = 1; This seemed to populate the array just fine. Randy W. Sims wrote: On 12/25/2003 2:51 AM, Duong Nguyen wrote: From: Randy W. Sims On 12/25/2003 12:59 AM, Duong Nguyen wrote: Hello everyone, Sorry for the

Re: Perl Help: Array Manipulation

2003-12-25 Thread u235sentinel
Understood. I guess I was trying to show him ( the senec route) that basically no running total was being compiled. Also that wasn't the total. I guess it was too late at night for a simple response from me :-) Charles K. Clarkson wrote: u235sentinel [EMAIL PROTECTED] wrote: [snipped

Re: Perl Help: Array Manipulation

2003-12-25 Thread u235sentinel
to use =(1) x 6 you could do it this way. I had confused where the .. goes :-) thx for the clarify Randy W. Sims wrote: On 12/25/2003 12:18 PM, u235sentinel wrote: But wouldn't the original initilization also work? @array1[0..5] = 1; No. Think of this in terms of parallel assignment