Re: Can't Install Mojolicious on Shared Server

2014-07-31 Thread Octavian Rasnita
From: "Mike Flannigan" Subject: Re: Can't Install Mojolicious on Shared Server On 7/30/2014 11:14 PM, Octavian Rasnita wrote: Catalyst can be used with the CGI interface, but it would be very slow, so not recommended at all. Octavia I was told it could also be used

Re: Can't Install Mojolicious on Shared Server

2014-07-31 Thread Mike Flannigan
On 7/30/2014 11:14 PM, Octavian Rasnita wrote: Catalyst can be used with the CGI interface, but it would be very slow, so not recommended at all. Octavia I was told it could also be used with PSGI/Plack. I'm hoping that is better. I got past the nmake issue with my Win7, but I suspect I

Re: Can't Install Mojolicious on Shared Server

2014-07-30 Thread Octavian Rasnita
From: "Mike Flannigan" Interestingly Hostgator already has Catalyst installed, so for now I'm going to give that a try. Mike Catalyst can be used with the CGI interface, but it would be very slow, so not recommended at all. Octavian -- To unsubscribe, e-mail: beginners-unsubscr..

Re: Can't Install Mojolicious on Shared Server

2014-07-30 Thread Mike Flannigan
Interestingly Hostgator already has Catalyst installed, so for now I'm going to give that a try. Mike On 7/29/2014 6:25 PM, Mike Flannigan wrote: I pay about $8 per month for a shared server hosting at Hostgator. I recently asked Hostgator to install Mojolicious on my account beca

Re: Can't Install Mojolicious on Shared Server

2014-07-30 Thread David Precious
On Tue, 29 Jul 2014 18:25:34 -0500 Mike Flannigan wrote: > I pay about $8 per month for a shared server hosting > at Hostgator. I recently asked Hostgator to install > Mojolicious on my account because I wanted to migrate > away from CGI. > > Hostgator tells me they can

Re: Can't Install Mojolicious on Shared Server

2014-07-29 Thread Mike Flannigan
Thanks for the quick reply. I'll look into it. Mike On 7/29/2014 6:24 PM, Hao Wu wrote: use DigitalOcean about $5 a month. you get everything you need. I am running Dancer2 in DigitalOcean, runs great. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-

Re: Can't Install Mojolicious on Shared Server

2014-07-29 Thread Hao Wu
use DigitalOcean about $5 a month. you get everything you need. I am running Dancer2 in DigitalOcean, runs great. On Tue, Jul 29, 2014 at 4:25 PM, Mike Flannigan wrote: > > I pay about $8 per month for a shared server hosting > at Hostgator. I recently asked Hostgator t

Can't Install Mojolicious on Shared Server

2014-07-29 Thread Mike Flannigan
I pay about $8 per month for a shared server hosting at Hostgator. I recently asked Hostgator to install Mojolicious on my account because I wanted to migrate away from CGI. Hostgator tells me they can't install Mojolicious "on a shared server as to install any custom modules you

Re: threads & threads::shared & Threads::Semaphore

2010-01-08 Thread Aimee Cardenas
way through processing the data. Unfortunately, the data is very interconnected and the statistics I need to execute involves data from several of the hashes. I'm thinking of using threads & threads::shared in order to be able to process, store and access the data among several of 8 processors

Re: threads & threads::shared & Threads::Semaphore

2010-01-08 Thread Jim Gibson
several of the > hashes. I'm thinking of using threads & threads::shared in order to > be able to process, store and access the data among several of 8 > processors on a Sun Spark system. Of course, I'll need to install the > threads and threads::shared modules and p

threads & threads::shared & Threads::Semaphore

2010-01-08 Thread Aimee Cardenas
w runs out of memory when it's about half way through processing the data. Unfortunately, the data is very interconnected and the statistics I need to execute involves data from several of the hashes. I'm thinking of using threads & threads::shared in order to be able to proces

Re: variables gets shared to child but resets back after exiting fork

2009-05-27 Thread Michael Alipio
s. Another problem solved!!! Till next time! --- On Wed, 5/27/09, Chas. Owens wrote: > From: Chas. Owens > Subject: Re: variables gets shared to child but resets back after exiting fork > To: "Michael Alipio" > Cc: "begginers perl.org" > Date: Wedn

Re: variables gets shared to child but resets back after exiting fork

2009-05-27 Thread Chas. Owens
On Wed, May 27, 2009 at 07:24, Michael Alipio wrote: > > Sorry about the indention... must be the mail client i'm using. > I need to fork because the external program I want to run inside the child > runs infinitely. I want to have a timer running in the parent and after that, > kill the child.

Re: variables gets shared to child but resets back after exiting fork

2009-05-27 Thread Michael Alipio
;m reading the perlipc now.. nothing so far.. --- On Wed, 5/27/09, Chas. Owens wrote: > From: Chas. Owens > Subject: Re: variables gets shared to child but resets back after exiting fork > To: "Michael Alipio" > Cc: "begginers perl.org" > Date: Wednesday, May 2

Re: variables gets shared to child but resets back after exiting fork

2009-05-27 Thread Chas. Owens
> If I don't use fork, I the way I would kill the process is by doing a call to > pkill. With fork, it would be much easier with exit. However the output of > external program gets discarded. > > Can you think of any workaround for this? snip Variables are not shared between pa

variables gets shared to child but resets back after exiting fork

2009-05-27 Thread Michael Alipio
Hi, I have to run an external program but the program does not termination on some conditions, e.g, ping, will not exit unless you specify -c or some other circumstances. Now I what I want to do is: my @array; die "Cannot fork myprog" unless (defined my $pid = fork) if ($pid==0){ open MYPROG

Re: 2 files, 1 package, shared constants

2009-03-01 Thread Gunnar Hjalmarsson
Marc Lucksch wrote: Stanisław T. Findeisen schrieb: Subject: 2 files, 1 package, shared constants Hello there My application consists of several files. Some of them are to be run as CGI scripts, the others from command line. There is also a "common" file with constants and share

Re: 2 files, 1 package, shared constants

2009-03-01 Thread Marc Lucksch
Stanisław T. Findeisen schrieb: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello there My application consists of several files. Some of them are to be run as CGI scripts, the others from command line. There is also a "common" file with constants and shared routines. The questio

Re: 2 files, 1 package, shared constants

2009-02-25 Thread Gunnar Hjalmarsson
Stanisław T. Findeisen wrote: My application consists of several files. Some of them are to be run as CGI scripts, the others from command line. There is also a "common" file with constants and shared routines. First: Please disregard my theory about concatenation. Concatenation is

Re: 2 files, 1 package, shared constants

2009-02-25 Thread Gunnar Hjalmarsson
Stanisław T. Findeisen wrote: Gunnar Hjalmarsson wrote: Concatenation seems like a bad idea. Try: print MY_FIRST_CONSTANT, "\n"; print MyPackage::MY_FIRST_CONSTANT, "\n"; Ee... you mean "." instead of "," right? No, I mean ",". You can print() a list. -- Gunnar Hjalmarsson Email: h

Re: 2 files, 1 package, shared constants

2009-02-25 Thread Stanisław T. Findeisen
Gunnar Hjalmarsson wrote: Concatenation seems like a bad idea. Try: print MY_FIRST_CONSTANT, "\n"; print MyPackage::MY_FIRST_CONSTANT, "\n"; Ee... you mean "." instead of "," right? This: print MY_FIRST_CONSTANT . "\n"; print MyPackage::MY_FIRST_CONSTANT . "\n"; yields this output:

Re: 2 files, 1 package, shared constants

2009-02-25 Thread Gunnar Hjalmarsson
Stanisław T. Findeisen wrote: Funny thing is that in two.pl MyPackage->MY_FIRST_CONSTANT works, but neither of these: print '' . MY_FIRST_CONSTANT . "\n"; print '' . MyPackage::MY_FIRST_CONSTANT . "\n"; Concatenation seems like a bad idea. Try: print MY_FIRST_CONSTANT, "\n"; print

2 files, 1 package, shared constants

2009-02-25 Thread Stanisław T. Findeisen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello there My application consists of several files. Some of them are to be run as CGI scripts, the others from command line. There is also a "common" file with constants and shared routines. The question is: what is the most stand

Re: Can't run PERL scripts on a shared server?

2008-05-12 Thread Randal L. Schwartz
> ""J" == "J Peng" <[EMAIL PROTECTED]> writes: "J> But most providers disabled mod_perl, b/c it's so powerful that has "J> the ability to harm the webservers. Not so much "harm" as just "the security model presumes a single user across all of the possible code". -- Randal L. Schwartz - Sto

Re: Can't run PERL scripts on a shared server?

2008-05-11 Thread Teo
On May 11, 12:57 am, [EMAIL PROTECTED] (Hotkitty) wrote: > I've been trying to setup a connection w/ a shared server at > godaddy.com. The script won't work and when I called them they tell me > that because I don't have a dedicated server that I can't run a perl >

Re: Can't run PERL scripts on a shared server?

2008-05-11 Thread J. Peng
On Sun, May 11, 2008 at 6:57 AM, hotkitty <[EMAIL PROTECTED]> wrote: > I've been trying to setup a connection w/ a shared server at > godaddy.com. The script won't work and when I called them they tell me > that because I don't have a dedicated server that I can'

Can't run PERL scripts on a shared server?

2008-05-11 Thread hotkitty
I've been trying to setup a connection w/ a shared server at godaddy.com. The script won't work and when I called them they tell me that because I don't have a dedicated server that I can't run a perl script and so I need to upgrade my account. I can access the shared server w

Re: variable will not stay shared

2008-04-10 Thread John W. Krahn
[EMAIL PROTECTED] wrote: Hi Members, Hello, 2)How do I shorten/improve this script. You could try it like this: # start of script # use strict; use warnings; use List::Util qw/ shuffle /; my %config = ( number_of_games=> 5_000, capital

Re: variable will not stay shared

2008-04-10 Thread Jenda Krynicky
From: <[EMAIL PROTECTED]> > Hi Members, > 1)The script below produce the following warnings:- "variable > $betting_system will not stay shared at roulette.pl line 61." >What is the problem and how do I rectify this problem. Don't write a name

variable will not stay shared

2008-04-10 Thread itshardtogetone
Hi Members, 1)The script below produce the following warnings:- "variable $betting_system will not stay shared at roulette.pl line 61." What is the problem and how do I rectify this problem. 2)How do I shorten/improve this script. Thanks # start

Re: Install CPAN module in shared hosting

2008-03-28 Thread Rob Coops
available but if so be prepared for your provider to refuse installing it. Regards, Rob Coops On Fri, Mar 28, 2008 at 4:23 PM, anthony brooke <[EMAIL PROTECTED]> wrote: > Hello, > > I like to install CPAN modulike like AI::Prolog, I have the Cpanel that > have CPAN module instal

Install CPAN module in shared hosting

2008-03-28 Thread anthony brooke
Hello, I like to install CPAN modulike like AI::Prolog, I have the Cpanel that have CPAN module installer, but my shared hosting does not allow some modules to be installed like this AI::Prolog, what can I do ? Should I install it in my computer first and then copy the PM files to my web host

Re: posix shared memory

2008-03-13 Thread Jenda Krynicky
From: "Nei Kai" <[EMAIL PROTECTED]> > 2008/3/11, Tom Phoenix <[EMAIL PROTECTED]>: > > On Mon, Mar 10, 2008 at 5:44 PM, Nei Kai <[EMAIL PROTECTED]> wrote: > > > > > I found a mmap module in CPAN, called Sys::Mmap, whose > > > version is V0.13 and is not updated since 2002. > > > So I am not s

Re: posix shared memory

2008-03-10 Thread Nei Kai
> > And why doesn't perl try to give an interface for posix shared > > memory after so many years? > > > Maybe it's because you haven't contributed your patch to the core yet. :-) > > Or maybe it's because the people who need that feature already find

Re: posix shared memory

2008-03-10 Thread Tom Phoenix
d why doesn't perl try to give an interface for posix shared > memory after so many years? Maybe it's because you haven't contributed your patch to the core yet. :-) Or maybe it's because the people who need that feature already find it somewhere, somewhere in the vastnes

posix shared memory

2008-03-10 Thread Nei Kai
hi, guys I have been searched for posix shared memory using mmap or something likewise in perl for a while. My version of perl is 5.8.7. It seems perl only supports SysV shared memory model, but the embedded system I am supposed to use does not support SysV. I found a mmap module in CPAN, called

IPTables::IPv4 issue / relocation R_X86_64_32S against ... can not be used when making a shared object

2007-10-01 Thread Michael Gale
fset table. This option makes a difference on the m68k, PowerPC and SPARC. Position-independent code requires special support, and therefore works only on certain machines. --snip-- The compile error returned during make: --snip-- gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIF

Re: using shared lib?

2006-06-07 Thread Mr. Shawn H. Corey
On Wed, 2006-07-06 at 13:40 +0700, Beast wrote: > Hello all, > > Just curious, is it possible to use shared library in perl? > Suppose I want to use libexample.so and doesn't want to invoke the > client command using system() > > TIA. > Yes, it's p

using shared lib?

2006-06-06 Thread Beast
Hello all, Just curious, is it possible to use shared library in perl? Suppose I want to use libexample.so and doesn't want to invoke the client command using system() TIA. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.

Re: : shared

2005-12-16 Thread Beast
Jeff Pang wrote: Do you mean something as below? my $foo::shared = ''; my @bar::shared = (); No. Take a lokk at this code: http://tobyinkster.co.uk/Software/linux/jukebox/jukebox-2.19b.pl ... # Shared variables for passing info around. my @queue : shared = ();

Re: : shared

2005-12-16 Thread John W. Krahn
Beast wrote: > > I saw code which has something like : > > > my $foo : shared = ''; > my @bar : shared = (); > ... > > What is that means? perldoc attributes perldoc perlthrtut perldoc perlsub John -- use Perl; program fulfillment -- To unsub

Re: : shared

2005-12-16 Thread Jeff Pang
Do you mean something as below? my $foo::shared = ''; my @bar::shared = (); I don't know what you writted too. -Original Message- >From: Beast <[EMAIL PROTECTED]> >Sent: Dec 16, 2005 5:00 AM >To: beginners@perl.org >Subject: : shared > > >I s

: shared

2005-12-16 Thread Beast
I saw code which has something like : my $foo : shared = ''; my @bar : shared = (); ... What is that means? -- --beast -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Fwd: RE: shared library of variables?

2005-09-05 Thread John Doe
|Subject: RE: shared library of variables? |Date: Montag, 5. September 2005 19.47 |From: "Bowen, Bruce" <[EMAIL PROTECTED]> |To: John Doe <[EMAIL PROTECTED]> |Thanks for the reply. |Do you have a place where there might be simple examples of a perl file |activating a libr

Re: shared library of variables?

2005-09-04 Thread John Doe
Bowen, Bruce am Sonntag, 4. September 2005 15.31: > I have a program that is monitoring communications into a PC, and based on > the message format will trigger one of multiple perl files. Most of these > files use the same variable name and my question today is, is there a way > of establishing a

shared library of variables?

2005-09-04 Thread Bowen, Bruce
I have a program that is monitoring communications into a PC, and based on the message format will trigger one of multiple perl files. Most of these files use the same variable name and my question today is, is there a way of establishing a common library file containing all of the variables so th

perl-shared/

2005-02-15 Thread deny
good afternoon all i ve a problem when i try compiling rddtool make[3]: Entering directory `/usr/local/rrdtool-1.0.49/perl-shared' make[3]: *** Pas de règle pour fabriquer la cible « /usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/EXTERN.h », nécessaire pour « RRDs.o ». Arrêt. a have

Dblib.so can't load shared object

2005-01-18 Thread Laxminarayana, Jayanth N
I am getting the following error when I try to run a perl script Can't load '/opt/perllib-5.8.2/sybperl/2.16-1251.EBF12107/auto/Sybase/DBlib/DBlib.so' for module Sybase::DBlib: /opt/perllib-5.8.2/sybperl/2.16-1251.EBF12107/auto/Sybase/DBlib/DBlib.so: cannot open shared object fil

Re: Write to file with shared server certificate

2004-07-09 Thread Gunnar Hjalmarsson
Ron Goral wrote: Thanks again for the replies. I contacted my host and the shared SSL does indeed operate under its own name which is different from mine. It is possible to create files under such circumstances, but they must be created in a folder that is 0777. I'm not crazy about hav

RE: Write to file with shared server certificate

2004-07-09 Thread Ron Goral
> -Original Message- > From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 08, 2004 8:58 PM > To: [EMAIL PROTECTED] > Subject: Re: Write to file with shared server certificate > > > Ron Goral wrote: > > If I try to create the file usi

Re: Write to file with shared server certificate

2004-07-08 Thread Gunnar Hjalmarsson
Ron Goral wrote: If I try to create the file using open(LOG,"+>>$logfile), the error is: No such file or directory at /usr/wwws/htdocs/mydomain/cgi-bin/test.cgi line 35. You must not include the '+' character when creating a file. perldoc perlopentut Try: open LOG, ">> $logfile" or die $!;

RE: Write to file with shared server certificate

2004-07-08 Thread Ron Goral
> -Original Message- > From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 08, 2004 3:25 PM > To: [EMAIL PROTECTED] > Subject: Re: Write to file with shared server certificate > > > Ron Goral wrote: > > chmod 0666 is the right thing.

Re: Write to file with shared server certificate

2004-07-08 Thread Gunnar Hjalmarsson
Ron Goral wrote: chmod 0666 is the right thing. Thank you. However, I am not able to do that programmatically when the script is running in secure mode. The following dies: $file_path = qq[/usr/wwws/htdocs/mydomain/cgi-bin/logs/errs.log]; chmod 0666,$file_path or die "Cannot chmod $file_path - $!

RE: Write to file with shared server certificate

2004-07-08 Thread Ron Goral
> -Original Message- > From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 08, 2004 9:19 AM > To: [EMAIL PROTECTED] > Subject: Re: Write to file with shared server certificate > > > Ron Goral wrote: > > I need to write to a log file to re

Re: Write to file with shared server certificate

2004-07-08 Thread Gunnar Hjalmarsson
Ron Goral wrote: I need to write to a log file to record things happening in a cgi script. The environment is secured using a server-wide, shared certificate. I cannot write to the file and get an error telling me I do not have the proper permissions to do so. So, why don't you change the

Write to file with shared server certificate

2004-07-08 Thread Ron Goral
Greetings - I need to write to a log file to record things happening in a cgi script. The environment is secured using a server-wide, shared certificate. I cannot write to the file and get an error telling me I do not have the proper permissions to do so. The log file is in my web's dire

Re: Variable "$some_var" will not stay shared

2004-05-07 Thread Perrin Harkins
On Thu, 2004-05-06 at 17:19, Beau E. Cox wrote: > But maybe I could explain the overall picture. I am trying to embed > 'any' script (whthout modification) in perl; I use a perl package > (which is run via a c program) to maintain 'persistence' of the script > which is read from disk. This must be

Re: Variable "$some_var" will not stay shared

2004-05-06 Thread Beau E. Cox
On Thursday 06 May 2004 11:40 am, Perrin Harkins wrote: > On Thu, 2004-05-06 at 17:19, Beau E. Cox wrote: > > But maybe I could explain the overall picture. I am trying to embed > > 'any' script (whthout modification) in perl; I use a perl package > > (which is run via a c program) to maintain 'per

Re: Variable "$some_var" will not stay shared

2004-05-06 Thread Beau E. Cox
On Thursday 06 May 2004 04:41 am, Wiggins d Anconia wrote: [snip] > Generally when I hit an unrecognized warning it is time to check the > perldiag docs, > > perldoc perldiag > > Conveniently, > > "Variable "%s" will not stay shared > (W closure) An inner

Re: Variable "$some_var" will not stay shared

2004-05-06 Thread Peter Scott
in >> > { >> > my $arg1 = shift @ARGV; >> > my $arg2 = shift @ARGV; >> > >> > show_results(); >> > >> > sub show_results >> > { >> > print "$arg1 and $arg2\n"; # <- line 17 >> >

Re: Variable "$some_var" will not stay shared

2004-05-06 Thread John W. Krahn
> _main(); > > sub _main > { > my $arg1 = shift @ARGV; > my $arg2 = shift @ARGV; > > show_results(); > > sub show_results > { > print "$arg1 and $arg2\n"; # <- line 17 > } > } > > gives the following war

Re: Variable "$some_var" will not stay shared

2004-05-06 Thread Wiggins d Anconia
{ > my $arg1 = shift @ARGV; > my $arg2 = shift @ARGV; > > show_results(); > > sub show_results > { > print "$arg1 and $arg2\n"; # <- line 17 > } > } > > gives the following warnings: > > [EMAIL PROTECTED]:~

Re: Variable "$some_var" will not stay shared

2004-05-06 Thread Alok Bhatt
s a nested sub-routine. So the first-time it is called, both it and the calling func (_main) will refer to the same variable. But when it is called the next time, it will access its own copy of the two variables ($arg1 and $arg2) and hence the error message that the variables will not

Re: Variable "$some_var" will not stay shared

2004-05-06 Thread Beau E. Cox
gs; > > > > _main(); > > > > sub _main > > { > > my $arg1 = shift @ARGV; > > my $arg2 = shift @ARGV; > > > > show_results(); > > > > sub show_results > > { > > print "$arg1 and $arg2\n"; #

Variable "$some_var" will not stay shared

2004-05-06 Thread Beau E. Cox
lts(); sub show_results { print "$arg1 and $arg2\n"; # <- line 17 } } gives the following warnings: [EMAIL PROTECTED]:~/src/bempl/junk$ perl ev2.pl mary jane Variable "$arg1" will not stay shared at ev2.pl line 17. Variable "$arg2" will not stay

RE: Thank for helping: Variable "$q" will not stay shared at

2003-07-20 Thread Charles K. Clarkson
B. Fongo <[EMAIL PROTECTED]> wrote: : : Now my codes looks like. It works. [snip] You might take a look at CGI::Application which handles a lot of the structure of a script for you. HTH, Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home Specialists 254 968-

Thank for helping: Variable "$q" will not stay shared at

2003-07-20 Thread B. Fongo
B. Fongo'; [EMAIL PROTECTED] Betreff: RE: Variable "$q" will not stay shared at B. Fongo wrote: > Hello, > > I'm working on my first Perl project. Most of my cgi programs work ok, > but a look at the apache error log reveals this warning which is > clear to me:

Serialized Shared Memory on Redhat 7.3.

2003-07-20 Thread Sri
Hi, Has anybody used the IPC::Shareable on redhat 7.3. I am unable to configure mine. Is there any better modules out there that come with both the STORABLE and SHAREABLE features. Need some input on this or is there a better way i can implement using DBM or that sort. Thanks sri. -- T

Re: Variable "$q" will not stay shared at

2003-07-17 Thread Kristofer Hoch
ello, > > I'm working on my first Perl project. Most of my cgi programs work > ok, > but a look at the apache error log reveals this warning which is > clear > to me: > > Variable "$xy" will not stay shared at /data/www/cgi-perl/envir.pl > line > 19. [

Threading / Shared Variable Assertion

2003-07-17 Thread Phil Schaechter
--version This is perl, v5.8.0 built for i86pc-solaris-thread-multi And here's the output: line 503 at /auto/tools/dust/dust.pl line 858, line 13. thread failed to start: Assertion ((shared)->sv) failed: file "shared.xs", line 503 at /auto/tools/dust/dust.pl line 858, lin

RE: Variable "$q" will not stay shared at

2003-07-17 Thread Bob Showalter
B. Fongo wrote: > Hello, > > I'm working on my first Perl project. Most of my cgi programs work ok, > but a look at the apache error log reveals this warning which is > clear to me: > > Variable "$xy" will not stay shared at > /data/www/cgi-perl/envir.

Variable "$q" will not stay shared at

2003-07-16 Thread B. Fongo
Hello, I'm working on my first Perl project. Most of my cgi programs work ok, but a look at the apache error log reveals this warning which is clear to me: Variable "$xy" will not stay shared at /data/www/cgi-perl/envir.pl line 19. [Wed Jul 16 11:44:57 2003] [error] Undef

Re: shared data in a class

2003-07-09 Thread Todd Wade
"Paul Archer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The answer to this is probably out there somewhere, but I haven't run across > it yet, so a pointer to a webpage/tutorial/FAQ/whatever would be fine... > > In other words, let's say $main_display is the object that repres

RE: shared data in a class

2003-07-09 Thread Paul Archer
3:28pm, Bob Showalter wrote: > Paul Archer wrote: > > The answer to this is probably out there somewhere, but I haven't run > > across it yet, so a pointer to a webpage/tutorial/FAQ/whatever would > > be fine... > > > > I'm trying to put together an object class (my first OO attempt) for a > > Cur

RE: shared data in a class

2003-07-09 Thread Bob Showalter
Paul Archer wrote: > The answer to this is probably out there somewhere, but I haven't run > across it yet, so a pointer to a webpage/tutorial/FAQ/whatever would > be fine... > > I'm trying to put together an object class (my first OO attempt) for a > Curses-like interface to a serial LCD display

shared data in a class

2003-07-09 Thread Paul Archer
The answer to this is probably out there somewhere, but I haven't run across it yet, so a pointer to a webpage/tutorial/FAQ/whatever would be fine... I'm trying to put together an object class (my first OO attempt) for a Curses-like interface to a serial LCD display. I want to have multiple object

help w/ threads::shared

2003-06-18 Thread Jeremy Vinding
object i'm creating w/ Config::IniFiles->new(); the _rlock _runlock is so any number of threads can read a value simultaneously, while protecting it during a write. any ideas? TIA, jeremy package SupportSite::Config; use threads; use threads::shared; use Exporter; use Error; use Config::In

Re: Thread::Queue (Invalid value for shared scalar)

2002-11-05 Thread Jeremy Vinding
On Tue, 2002-11-05 at 14:34, Jenda Krynicky wrote: > From: Jeremy Vinding <[EMAIL PROTECTED]> > > On Tue, 2002-11-05 at 14:18, Jenda Krynicky wrote: > > > > > > > > Because you'd have a shared reference to a private array. > > > > > &g

Re: Thread::Queue (Invalid value for shared scalar)

2002-11-05 Thread Jenda Krynicky
From: Jeremy Vinding <[EMAIL PROTECTED]> > On Tue, 2002-11-05 at 14:18, Jenda Krynicky wrote: > > > > > Because you'd have a shared reference to a private array. > > > > I believe the docs for threads.pm and Thread::Queue explain this. > > I'

Re: Thread::Queue (Invalid value for shared scalar)

2002-11-05 Thread Jeremy Vinding
On Tue, 2002-11-05 at 14:18, Jenda Krynicky wrote: > > Because you'd have a shared reference to a private array. > > I believe the docs for threads.pm and Thread::Queue explain this. > I'm not using Perl 5.8 yet so I can't tell. they don't but i guess

Re: Thread::Queue (Invalid value for shared scalar)

2002-11-05 Thread Jenda Krynicky
From: Jeremy Vinding <[EMAIL PROTECTED]> > does anyone know why I can't enqueue an array ref? > the error is this: > Invalid value for shared scalar at > /usr/lib/perl5/5.8.0/Thread/Queue.pm line 90. Because you'd have a shared reference to a private array. I believe

Thread::Queue (Invalid value for shared scalar)

2002-11-05 Thread Jeremy Vinding
does anyone know why I can't enqueue an array ref? the error is this: Invalid value for shared scalar at /usr/lib/perl5/5.8.0/Thread/Queue.pm line 90. TIA, jjv __CODE__ #!/usr/bin/perl use 5.008; use warnings; use strict; use threads; use Thread::Queue; my $q = Thread::Queue->ne

Re: nested subroutines and shared variables

2002-09-18 Thread Michael Fowler
7;m getting error messages "Variable "$content" will not stay shared". This will not do what you probably think it does. myXMLtag is a global function, regardless of whether or not you define it within another subroutine. The error message is described in perldiag: > echo

Re: nested subroutines and shared variables

2002-09-18 Thread david
; >my $content; >> > >> > sub myXMLtag { >> > (... do something with $content...) >> >} >> > >> > } >> > >> > Now I'm getting error messages "Variable "$content" will not stay >> &g

Re: nested subroutines and shared variables

2002-09-18 Thread Bernd Prager
I end up defining nested subroutines: > > > > sub myParse { > >my $content; > > > >sub myXMLtag { > > (... do something with $content...) > >} > > > > } > > > > Now I'm getting error messages "Variab

Re: nested subroutines and shared variables

2002-09-18 Thread Ramprasad A Padmanabhan
{ >my $content; > >sub myXMLtag { > (... do something with $content...) >} > > } > > Now I'm getting error messages "Variable "$content" will not stay shared". > > I read something about anonymous functions to prevend this er

nested subroutines and shared variables

2002-09-18 Thread Bernd Prager
have this procedure entirely encapsulated in my funtion I end up defining nested subroutines: sub myParse { my $content; sub myXMLtag { (... do something with $content...) } } Now I'm getting error messages "Variable "$content" will not stay shared&

XS and Shared Libraries

2002-07-17 Thread BUFFERNE,VINCENT (Non-HP-France,ex1)
Hi, I am building a wrapper between some Perl code and C library. I am using XS for this. I want to compile the wrapper as a Shared Lib that is dynamically loaded by perl. Today I compile a Shared Lib statically linked to the C library (I link with the "C Lib".asl) in one big

Re: XS and Shared Lib

2002-07-05 Thread drieux
On Friday, July 5, 2002, at 04:36 , BUFFERNE,VINCENT (Non-HP-France,ex1) wrote: [..] > I have done some tests with a simple "Hello World" like program and it > work > fine, but when it comes to real thing, problems arise and at run time, I > have the following error: > "Can't find 'boot_foo' sy

XS and Shared Lib

2002-07-05 Thread BUFFERNE,VINCENT (Non-HP-France,ex1)
Hi, I am writting a XS wrapper between some C bits and an executable in Perl. I compile the wrapper as a Shared Lib and I want to load it dynamicaly from Perl using Dynaloader. I have done some tests with a simple "Hello World" like program and it work fine, but when it comes to

Re: regex for shared object files

2002-01-10 Thread John W. Krahn
Zentara wrote: > > Hi, Hello, > I'm trying to find all .so.xxx files on my system. > Eventually I want to do things with them, but for > now I just want to identify them. > > I pretty much have it, except I'm lacking enough > regex knowledge to separate out the so from the .so. > files. > >

Re: regex for shared object files

2002-01-10 Thread Christopher Solomon
On Thu, 10 Jan 2002, Christopher Solomon wrote: > > On Thu, 10 Jan 2002, zentara wrote: > > > Hi, > > I'm trying to find all .so.xxx files on my system. > > Eventually I want to do things with them, but for > > now I just want to identify them. > > > > I pretty much have it, except I'm lacking en

Re: regex for shared object files

2002-01-10 Thread Christopher Solomon
On Thu, 10 Jan 2002, zentara wrote: > Hi, > I'm trying to find all .so.xxx files on my system. > Eventually I want to do things with them, but for > now I just want to identify them. > > I pretty much have it, except I'm lacking enough > regex knowledge to separate out the so from the .so. > f

Re: regex for shared object files

2002-01-10 Thread Curtis Poe
--- zentara <[EMAIL PROTECTED]> wrote: > Hi, > I'm trying to find all .so.xxx files on my system. > Eventually I want to do things with them, but for > now I just want to identify them. > > I pretty much have it, except I'm lacking enough > regex knowledge to separate out the so from the .so. >

RE: regex for shared object files

2002-01-10 Thread Mark Anderson
your original regex is matching any character before the so, and you want to match an actual period. /\/\ark -Original Message- From: zentara [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 3:31 PM To: [EMAIL PROTECTED] Subject: regex for shared object files

regex for shared object files

2002-01-10 Thread zentara
Hi, I'm trying to find all .so.xxx files on my system. Eventually I want to do things with them, but for now I just want to identify them. I pretty much have it, except I'm lacking enough regex knowledge to separate out the so from the .so. files. I'm matching cursor moc_sound libqt.so.2 lib

RE: shared hash - how ?

2001-08-02 Thread Brian
Somebody on the mod_perl mailing list might be able to help you better than somebody on the begginers perl list. This is a bit OT (okay, it's way out in left field. If you go to http://perl.apache.com you can sign up for the list. #!/usr/bin/Brian Johnson $job= "Laziness"; $pay=

RE: Shared memory

2001-07-10 Thread Rolf Banting
num_recs = unpack "i", $data_str; gets me the number of records into $num_recs. -Original Message- From: Rolf Banting [mailto:[EMAIL PROTECTED]] Sent: 10 July 2001 16:22 To: '[EMAIL PROTECTED]' Subject: Shared memory A question on shared memory on Solaris 2.6. T

Shared memory

2001-07-10 Thread Rolf Banting
A question on shared memory on Solaris 2.6. The scenario is that I want to share data between a C-prog and a perl prog. I can create a segment fine from perl using either the shmget or IPC::ShareLite methods and a test C-prog is happily writing data to the segment. Likewise I can get another C