archives

module needs to know its own path

Hello, within a perl module, I need to access content included with this module, but stored in separate files (WSDL definitions in my case). If my module lies in /usr/lib/perl5/xxx/MyModule.pm , the WDSL files could be stored in /usr/lib/perl5/xxx/MyModule/WS DLs/*.wsdl or similar. But how can the perl module find out where it has been loaded from? The

FAQ 5.3 How do I count the number of lines in a file?

This is an excerpt from the latest version perlfaq5.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] .

insert codes dynamically

I have to add objects dynamically in a code and therefore the number of objects are not known beforehand. How to achieve this effectly in a simple way? e.g. $panel = Panel->new( -length => 1000, -width => 10, ); my $obj1 = Object::Generic->new( -start => 10,

FAQ 4.70 How do I handle binary data correctly?

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] .

2. How to convert video on Mac - My iTablet

2. How to convert video on Mac My iTablet, AZ - 3 hours ago It allows you to select DVD subtitle and audio track, choose a

2. How to convert video on Mac - My iTablet

2. How to convert video on Mac My iTablet, AZ - Mar 6, 2008 It allows you to select DVD subtitle and audio track, choose a

Database Survey Gives Oracle The Lead In All 13 Categories

LewisC's An Expert's Guide To Oracle Technology According to InformationWeek, an Evans Data survey (1470 respondents) shows that Oracle led in all 13 categories. In most categories DB2 was second and other databases followed behind. I think it's worth noting

How many of us could survive 30 bad seconds of scrutiny...

Seth Godin points to a post with the following YouTube videos taken by students. His take was that he points to this as a failure in marketing education and questions to teachers - they are saying not doing. While I do not want my child in a classroom with a teacher who is routinely acting in this fashion, I am more concerned that this could be 30 seconds of scrutiny of an otherwise great educator.

Notes on unicode/utf8, CGI, DBI, mysql

I've written a small tutorial/guide on some of the issues I've come across when trying to use unicode/utf8 in my LAMP stack and thought I'd share them. [link] I hope you will find it useful and please provide me with feedback.

Estimating by Percentages

Discusses the fallacy of estimating by percentages.

graphic library GD

Can GD only generate png? Google search returns jpeg generation is possible but i cannot obtain its documentation about how to do that.

Going from CD to MP3 to WAV - Modesto Bee

Going from CD to MP3 to WAV Modesto Bee, CA - 10 hours ago The resulting WAV files are compatible with CD players, but the song title information will be lost in the conversion .

Perl functions

Hi all, I am using a file abc.pl which is having a function called get(). I am including this perl file inside a cgi script, and also i am calling this function inside this script. Now this function residing inside the perl file abc.pl should now look into the URL of the calling CGI script and it should return the URL for the cgi script.

FAQ 4.66 How can I make my hash remember the order I put elements into it?

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] .

[sqlldr] upload number datatype from varchar2 datatype in ctl file

dear friends. This is my datfile...in the last field the data is: 3180.8 or 605. like you can see... in the table destination the field have NUMBER(12,2) and i want to upload in this datatype from my control file... Example of my datfile is: 00000000 0 0601 2000082 6 2013 1023414 3378 1 MATUTE 40 C MAT UTE CUADRA

Conditional compilation

Hi, From the chapter on internal workings of Perl in the Perl book, I think it should be possible to conditionally compile something based on a variable. I have the following real problem: my code has a lot of statements that conditionally print a tracing message. That is based on a command line parameter.

scalar context for testing arguments

Hi, Is this the right way to test for existence of arguments? if (@ARGV > 0) { or should I use the index of the last argument? if ($#ARGV >= 0) { Who has a better suggestion?