First  |  Prev |  Next  |  Last
Pages: 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497
How to initialize class data?
Hi, I've got some class data which I want to initialize once. I was thinking of doing it like this: { package Foo; my $FirstTime = 1; sub new { my $class = shift; my $self = {}; bless $self, $class; $class->init() if ($FirstTime); } sub init { # Initialize class data...... 27 Sep 2006 17:19
Passing object from subroutine problem
Hello I'm new here, so, hi! I've been having the following problem. I have a module which I am creating to manage sessions for my website. I have the following sub in it: #takes an active db handle, returns a new session object. sub newSession { my $dbh = @_[1]; my %session; tie %session, 'Ap... 27 Sep 2006 13:35
Tk-perl2exe FileSelect error
HI, My following code runs fine with Activestate on Windows: $FSref = $mw->FileSelect(-directory => "d:\\",-filter => "*.zip"); $filename1 = $FSref->Show; However fails after perl2exe compilation. Appreciate any advise. Tk::Error: PLEASE SEE THE PERL2EXE USER MANUAL UNDER "Can't locate somemodule.pm in @I... 26 Sep 2006 16:59
hashes question
I'm having a bit of trouble sending hash elements to sub routines and back. Any help appreciated! sub entry { my $l = shift; my %h = %_; while( ( my $k, my $v ) = each ( %h ) ) { print( "K: $k V: $v\n" ); } return(%h); } $h{'stuff'} = "hello"; %h = entry( "1", \%h ); When run %h becomes em... 21 Sep 2006 14:55
Use of uninitialized value in print
Hello I ran into a problem that I have been working on, the warning use of unitialized value at print I have tried everything I know. I have initialized my variables but I don't get the contents of the value. I have looked at perldoc but can't seem to resolve the issue of not getting my value contents. It co... 19 Sep 2006 08:35
perlembed reentrancy
I'm trying to embed perl in Java via JNI, and I'd like to be able to instantiate multiple independent perl interpreters. My work so far has lead to the following questions: 1. What is the purpose of PERL_SYS_INIT3? Will anything happen if I call it more that once? Do the argc and argv I pass to it need to be... 13 Sep 2006 18:45
Taint and memory usage
Taint seems to nearly double the amount of memory my program takes. I haven't see this side effect discussed in perldoc perlsec. This is inconvenient, as sometimes I just don't have that much memory to spare. Does anyone know of a work around for this (or of some more detailed discussion about why it occurs). ... 13 Sep 2006 18:45
String buffer instead of file handle?
I have to connect to this module, and I usually send it a file handle, or stdout. But I want to write it to a string. Is there a string buffer or something I can use? open (FILEO, ">test.txt"); $xw = MP3Com::XMLWriter->new (\*FILEO); or $xw = MP3Com::XMLWriter->new (\*STDOUT); I want to do: my $xmlstrin... 19 Sep 2006 13:28
Boolean Regexp with perlre
Hi, I'm not sure if this is appropriate for this group, it's related to perlre rather than perl, if so, apologies and I'd appreciate a pointer to the right group. I'm trying to find out if this is possible before I embark upon implementing a solution to my problem. I have a string with comma separated tags:... 14 Sep 2006 14:08
CPAN - 'cl' is not recognized as an internal or externalcommand,
>>>>> "S" == Sisyphus <sisyphus1(a)nomail.afraid.org> writes: S> "Henry McGuinness" <henry.mcguinness(a)dphpc.ox.ac.uk> wrote in message S> news:edjkcc$j21$1(a)frank-exchange-of-views.oucs.ox.ac.uk... Ok you seem to be using ActivePerl for windows (you didn't say :)). This S> is compiled using Visual... 5 Sep 2006 14:14
First  |  Prev |  Next  |  Last
Pages: 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497