Perl Zone

    Perl ZONE

 
Article Author:
On Windows, if when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with the perl interpreter. This is normally done by the installer, but not always.

To associate files:
1) Start windows explorer
2) Select, from the menu, Tools -> Folder Options
3) Select the File Types tab
4) Look in the list for a PL extension. If it does NOT ...
Article Author:
I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx..
MOST IMPORTANT:
Use Unix file format while saving Your script.
otherwise it will have ^M s or smth likely weird in the EOL,
Then DO NOT use my ad hoc initialization in Unix like my $list = ...;
,never worked,doesn't seem to work now,why bother,
just
compare 2 snips bellow:
...
Solution by:
Minimal version of problem attached. Numbers such as 1.23 are read ok using perl .mdb driver or .mdb, .accdb driver. Small numbers such as 1.23E-15 are read ok using .mdb driver, but not .accdb driver. Latter returns E-15 instead.

Have tried database in 2000,2003,2007 format and .accdb driver always has same behaviour. May be able to get away using older driver, but would like to understand how to make the newer one work.

I'm using active state perl 5.10
...
Solution by:

I'll need a script that probably wakes up & run a pre-set interval &
it check for any process that has hogged CPU for more than say,
10 seconds, it will renice or cpulimit the process.

I'm not sure how exactly to define "hogging CPU" :
can we do a difference say for the last 10 seconds, if a process
has taken up about 5 seconds of a processor execution time PLUS
from "top" it's taking up more than 80% of CPU, then the ...
Overall Rank:
Sage
FishMonger has been a member of Experts Exchange since 01/01/2003. Since then he has earned 2 certifications, including a Sage in Perl.

To date, he has answered 957 questions, and posted 4134 comments on Experts Exchange.
 
 
Zone Advisors

Having problems asking a question? Have a general question about Experts Exchange? Let us know!

 
 
Second Quarter Hot Shots

Time for your 2nd quarter update! Are you in the running for the 7th Annual Expert Awards? Click on the link to find out.

2nd Quarter Update
 
 
[x]
Neglected Question
Neglected questions are any questions that either have not yet been addressed by an expert, or a solution has not been awarded, and may be eligible for bonus points (see your profile page for details).
Filter: Date
ian__hawkins accepted a solution! problem using perl to read small numbers from access database us… 09/06/10 01:20 AM
vikaskhoria posted an expert comment! Palindrome 09/05/10 11:53 PM
rockiroads posted an expert comment! Palindrome 09/05/10 11:08 PM
rockiroads posted an expert comment! Palindrome 09/05/10 11:08 PM
rockiroads posted an expert comment! Palindrome 09/05/10 10:51 PM
jeromee posted an expert comment! Palindrome 09/05/10 05:36 PM
FishMonger posted an expert comment! Perl Not Recursion 09/05/10 04:55 PM
thebourneid posted a comment! Perl Not Recursion 09/05/10 03:40 PM
ozo posted an expert comment! Palindrome 09/05/10 03:17 PM
Tintin posted an expert comment! Perl Not Recursion 09/05/10 02:51 PM
 
 
 
Loading Advertisement...
ADVERTISEMENT