archives

A question on next

At work, one of the engineers did something like the following to parse a 100MB apache log file. while (<LOG>) { next unless (/^\w+\s([a-zA-Z\.]+)\s\w+\s\w +\s\w+\s(\d+)$/); $locationhash{$1} += $2; He told me this loop wouldn't check every single in the log file. I don't see how this is possible. Can someone clarity this? Thank you.

FAQ 4.27 How can I access or change N characters of a string?

This is an excerpt from the latest version perlfaq4.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at [link] .

Memory Sizing Advice

I'm in the process of speccing out the hardware for an Oracle 10.2.0.3 server. We're expecting a database in the 200G size. Working set is hard to estimate, but in analagous 100G systems I see a buffer hit ratio or around 70% with a 2.3 G SGA (about as big as I can get it on a 32 bit OS). Based on this and a fair amount of spitball analysis I'd

Why Larry Wall uses this background color #e0ff00 for his web page

[link], just curious, but this is odd, and does harm the eyes : 0, what do u think?

FAQ 4.25 How do I expand tabs in a string?

This is an excerpt from the latest version perlfaq4.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at [link] .

Perl & Win32 & RHEL

Hi, I am _very_ new to Perl (third day to be precise) so apologies in advance for the incorrectness in post below. I am trying to run a perl script on _RHEL 5.1_. That script, when ran, throws error "Cannot load Win32::OLE: Can't locate Win32/OLE.pm in @INC..". I have managed to download few other dependencies when I got

Net::SSH::Perl error

Hi, I am encountering the following error while using Net::SSH::Perl, from within a Perl CGI script: Bad packet length <some number> at /usr/lib/perl5/site_perl/5.8.0 / Net/SSH/Perl/Packet.pm Has anyone faced this issue before? Any idea what might be causing this? Some help is much appreciated. thanks,

FAQ 3.21 How can I compile my Perl program into byte code or C?

This is an excerpt from the latest version perlfaq3.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at [link] .

MySQL and Perl

I am about to dive into working with MySQL databases in perl and am looking for any information you all may have on the subject, website links, modules etc. Bill H

Date / Time a table was updated

Hi We are running Oracle 9i on unix, is it possible to query the database to find out the last date and time a named table has some data updated / inserted Thanks Alastair

Steps to Fusion - Centralize the Management of Your Applications on Oracle Enterprise Manager

eWeek recently reviewed Oracle Enterprise Manager Grid Control 10gR4. In the article, Cameron Sturdevant referred Enterprise Manager as “a high-powered ecosystem management platform that uses its home field advantage in Oracle shops to provide administrators with top-notch

DROP TABLE customers

I would like to know if Perl's DBI supports an attribute that would make a database handle read only. That is, I am looking for a way to make a handle read only so that all subsequent queries that seek to modify the database, would not proceed at all. This would be for mysql. Thanks

Installing arch-specific PM without shell access

Good Morning All, I am hosting my Web site with Yahoo! small business services. I need to get a few Perl modules installed that use compiled C code. I don't have shell access, however, so I'm having a real hard time. I tried the suggestion at [1]. The problem is that Yahoo! has done things to cripple Perl-based CGI scripts, preventing that tact from working.

deterministic function index

Hello, I explain my pb : i've created a table with 3 columns ( t ( col1, col2, col3) ) For performance reasons, i've created a function get_col3(v1, v2 ) returning v3 which is col3%type type and is used in a view. My queries are very much less cost than previously. Now, when i want to query with a filter on get_col3(v1, v2 ) field, i

Get variable from its name string or vice versa?

I have written a function to log variables like this: " varName: varValue" but it takes two arguments: the variable name as a string, and the variable symbol: logVar ("myVar", $myVar) ; sub logVar { my $varName = shift ; my $varValue = shift ; if (!defined($varValue)) { $varValue = "<undef>" ;