[12508] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 6108 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Jun 23 12:07:20 1999

Date: Wed, 23 Jun 99 09:00:21 -0700
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Wed, 23 Jun 1999     Volume: 8 Number: 6108

Today's topics:
    Re: 2 simple (not to me tho) questions <tchrist@mox.perl.com>
    Re: 2 simple (not to me tho) questions (Philip 'Yes, that's my address' Newton)
    Re: aut et vel <jcreed@cyclone.jprc.com>
    Re: Can I do this?  Conditional Operator construct.... <aqumsieh@matrox.com>
    Re: Comparing two associative arrays <aqumsieh@matrox.com>
    Re: cookies <dparrott@ford.com>
    Re: dynaloader <rootbeer@redcat.com>
    Re: How do you use XML Modules with ActiveStatePerl? <matt.sergeant@ericsson.com>
    Re: How to start perl server with inetd.. (?) (Philip 'Yes, that's my address' Newton)
        indian perl group dejapradeepk@my-deja.com
    Re: Indian perl group <gellyfish@gellyfish.com>
    Re: Logs descriptor and reporting tools <rootbeer@redcat.com>
        More fun with Hashes of Lists... (Mitch)
    Re: More fun with Hashes of Lists... (Eric Bohlman)
        Need Help with interesting Perl problem. big_sal@my-deja.com
    Re: Newbie- foreach $var (keys %fields) - Outputs in wr <aqumsieh@matrox.com>
    Re: NT - Server Up time <matt.sergeant@ericsson.com>
    Re: NT - Server Up time <rootbeer@redcat.com>
    Re: Running simple perl scripting <dave@dave.org.uk>
    Re: Running simple perl scripting <rootbeer@redcat.com>
    Re: Statistics for comp.lang.perl.misc (Bart Lateur)
    Re: system exec <rootbeer@redcat.com>
    Re: Timing out problem...Suggestions? <aqumsieh@matrox.com>
    Re: Transparent proxy ? <rootbeer@redcat.com>
    Re: Using ROLLBACK() w/ DBI Module <jackie.stock@2jhuapl.edu>
    Re: Using ROLLBACK() w/ DBI Module <garethr@cre.canon.co.uk>
    Re: Variable not imported <rootbeer@redcat.com>
    Re: Viral matters [completely off-topic] <rolm@my-deja.com>
    Re: webget, perl 5.005_03 on Linux, cryptic error <rootbeer@redcat.com>
        Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: 23 Jun 1999 09:02:23 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: 2 simple (not to me tho) questions
Message-Id: <3770f6ff@cs.colorado.edu>

     [courtesy cc of this posting mailed to cited author]

In comp.lang.perl.misc, 
    lr@hpl.hp.com (Larry Rosler) writes:
:qw( 
:foo bar baz ) is processed as split('', ' foo bar baz ') AT RUN TIME!  

FITNR (fixed in the next release).

--tom
-- 
"It's true! When you load WordPerfect into memory backwards, you see a GIF of 
 the face of Satan!"     - `Secrets of the Masons'


------------------------------

Date: Wed, 23 Jun 1999 15:50:27 GMT
From: nospam.newton@gmx.net (Philip 'Yes, that's my address' Newton)
Subject: Re: 2 simple (not to me tho) questions
Message-Id: <37710145.3340252@news.nikoma.de>

On Wed, 23 Jun 1999 07:25:59 -0700, lr@hpl.hp.com (Larry Rosler)
wrote:

>If one is concerned about the cleverness of the perl 
>compiler/interpreter re q-quoted vs qq-quoted strings, one should be 
>much more concerned about its cluelessness re qw-quoted strings.  qw( 
>foo bar baz ) is processed as split('', ' foo bar baz ') AT RUN TIME!  
>So don't use it inside a tight loop.
>
>This is an acknowledged performance bug, which might get fixed some day.

I thought this was fixed in the newest release to have qw// work at
compile time?

Cheers,
Philip
-- 
Philip Newton <nospam.newton@gmx.net>


------------------------------

Date: 23 Jun 1999 11:11:17 -0400
From: Jason Reed <jcreed@cyclone.jprc.com>
Subject: Re: aut et vel
Message-Id: <a1lndb0x62.fsf@cyclone.jprc.com>

nospam.newton@gmx.net (Philip 'Yes, that's my address' Newton) writes:

> On 22 Jun 1999 17:30:06 -0700, Tom Christiansen <tchrist@mox.perl.com>
> wrote:
> 
> >They have both an inclusive and an exclusive "or" in their language,
> >after all. :-)
> 
> Forgive my sorely lacking classical upbringing, but:
> 
> Which of "aut" and "vel" is which of "inclusive or" and "exclusive
> or"?
I believe "vel" is inclusive, thus the traditional "v"-like sign 
in propositional logic for inclusive or.

Or maybe it's the other way around - but not both ;)

---Jason


------------------------------

Date: Wed, 23 Jun 1999 10:38:47 -0400
From: Ala Qumsieh <aqumsieh@matrox.com>
Subject: Re: Can I do this?  Conditional Operator construct....
Message-Id: <x3yiu8fc77s.fsf@tigre.matrox.com>


portboy@home.com (Mitch) writes:

> I'm trying to use the format for "Conditional Operator" of TEST_EXPR ?
> IF_TRUE_EXPR : IF_FALSE_EXPR
> 
> This works fine, but my question is...Can I do this?
> 
> TEST_EXPR ? $some_value = 1; $other_value =0 : IF_FALSE_EXPR
>                                                     ^
> I don't seem to be able to do this...Is there a way of accomplishing
> this in this type of format?

I don't really understand your problem since you don't really post
valid code. This is perfectly fine:

$expr ? do { $x = 1; $y = 2} : do { $x = 2; $y = 3};

If you're confused by this, then why don't you simply use the clearer
if-else construct?

HTH,
Ala



------------------------------

Date: Wed, 23 Jun 1999 09:53:45 -0400
From: Ala Qumsieh <aqumsieh@matrox.com>
Subject: Re: Comparing two associative arrays
Message-Id: <x3ylndbc9au.fsf@tigre.matrox.com>


Vinayak P DAs <vinayak@india.ti.com> writes:

>  Wanted to know if there is any way to directly compare two hashes.

I am afraid this has to be done manually.

my $diff = 0;

if (keys %hash1 == keys %hash2) {
	for my $key (keys %hash1) {
		next if exists $hash2{$key} && 
			$hash1{$key} eq $hash2{$key};
		$diff = 1;
		last;
	}
} else {
	$diff = 1;
}

if ($diff) {
	# they are different
} else {
	# they are the same
}


There might be easier ways, but I can't think of any right now.

HTH,
Ala



------------------------------

Date: Wed, 23 Jun 1999 09:30:43 -0400
From: "Dennis M. Parrott" <dparrott@ford.com>
To: Leonid Goltser <leonid76@erols.com>
Subject: Re: cookies
Message-Id: <3770E183.19543C69@ford.com>

Get CGI.pm and Lincoln Stein's great book that shows how to
use his software (he wrote CGI.pm). The book is "Official
Guide to Programming with CGI.pm"; it's on Wiley.

You could also check the web; Altavista, HotBot, .... there
is a ton of stuff there.

Leonid Goltser wrote:
> 
> Where can I find some kind of tutoring to make cookies with perl?

-- 

-----------------------------------------------------------------------
Dennis M. Parrott        |            Unix:  dparrott@ford.com
PCSE Webmaster           |           PROFS:  DPARROTT
Ford Motor Company       |             VAX:  EEE1::PARROTT
Dearborn, Michigan USA   | public Internet:  dparrott@ford.com
-----------------------------------------------------------------------
Voice: 313-322-4933  Fax: 313-248-1234  Pager: 313-851-2958


------------------------------

Date: Wed, 23 Jun 1999 08:31:49 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: dynaloader
Message-Id: <Pine.GSO.4.02A.9906230830220.1698-100000@user2.teleport.com>

On Wed, 23 Jun 1999 francesc_guasch@my-deja.com wrote:

> I'm trying to install a module and it complains this way:
> install_driver(mysql) failed: Can't load
> '../blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: File not
> found at /usr/lib/perl5/5.00503/i586-linux/DynaLoader.pm line 169.

Are you using the standard installation sequence of 'perl Makefile.PL',
'make', 'make test', 'make install'? After which of those commands does
this message show up?

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



------------------------------

Date: Wed, 23 Jun 1999 16:25:33 +0100
From: Matt Sergeant <matt.sergeant@ericsson.com>
Subject: Re: How do you use XML Modules with ActiveStatePerl?
Message-Id: <3770FC6D.4E118FF@ericsson.com>

robert sarno wrote:
> 
> I am realitively new to Perl but have an ok handle on C.  I am
> programming Perl with the newest Perl compiler I can find 5.00503.  How
> do we use the XML mods with ActiveStatePerl.  I have the XML mods on my
> desktop.

perldoc XML::Parser

Or define exactly what you're trying to do.

Matt.


------------------------------

Date: Wed, 23 Jun 1999 15:50:27 GMT
From: nospam.newton@gmx.net (Philip 'Yes, that's my address' Newton)
Subject: Re: How to start perl server with inetd.. (?)
Message-Id: <377101a4.3435246@news.nikoma.de>

On Wed, 23 Jun 1999 05:14:42 -0700, Alex <alex@sea.wa.com> wrote:

>open(SOCKIN,"-") || &log_and_die();
>open(SOCKOUT,">-")|| &log_and_die();
>select(IN); $|=1;
>select(OUT), $|=1
>
>while(<IN>){ .. do whatever... }

Anything wrong with while(<STDIN>) and plain print rather than having
SOCKIN/SOCKOUT?

>close(IN), close(OUT);

Error checking on the close?

Cheers,
Philip
-- 
Philip Newton <nospam.newton@gmx.net>


------------------------------

Date: Wed, 23 Jun 1999 14:47:56 GMT
From: dejapradeepk@my-deja.com
Subject: indian perl group
Message-Id: <7kqs2o$8q8$1@nnrp1.deja.com>

Hi all,

I am a PERL programmer from India (IIT- Bombay) and interested in
associating with PERL programmers from India in nearby cities for doing
research and developement on few related projects.

If anybody interested there please contact me at pradeepk@mail.com

Pradeep Kumar


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


------------------------------

Date: 23 Jun 1999 16:15:07 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Indian perl group
Message-Id: <3770f9fb@newsread3.dircon.co.uk>

dejapradeepk@my-deja.com wrote:
> Hi all,
> 
> I am a PERL programmer from IIT-bombay India and
> looking for associating with PERL and Linux
> programmers in nearby areas for carrying out
> research and developement in these areas and
> sharing knowledge.
> 

Ther already is a Bombay Perl mongers group apparently -
   <http://www.pm.org/groups.shtml>

/J\
-- 
"The Spice Girls don't care if I like them or not because I'm not twelve"
- Germaine Greer


------------------------------

Date: Wed, 23 Jun 1999 08:04:26 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Logs descriptor and reporting tools
Message-Id: <Pine.GSO.4.02A.9906230804110.1698-100000@user2.teleport.com>

On Tue, 22 Jun 1999, glchy wrote:

> im looking for some (preferably free downloads!) of tools
> which can analyse Apache log files and give meaningful
> reports about web traffic.

If you're wishing merely to _find_ (as opposed to write) programs,
this newsgroup may not be the best resource for you. There are many
freeware and shareware archives which you can find by searching Yahoo
or a similar service. Hope this helps!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



------------------------------

Date: Wed, 23 Jun 1999 15:39:00 GMT
From: portboy@home.com (Mitch)
Subject: More fun with Hashes of Lists...
Message-Id: <37708f2b.395622815@24.0.3.71>

If I have a hash of a list like:

$foo{coke} where the coke array contains, sucks bites rules.  How can
I easily append an element to the end of the coke array?  I know I can
add an element like $foo{coke}[3] = "dominates";  However, can I add
dominates to coke in a form like I just mentioned without knowing what
size the array is?  Or do I need to get the array's size?  If so, how?

Thanks, mitch


------------------------------

Date: Wed, 23 Jun 1999 15:54:34 GMT
From: ebohlman@netcom.com (Eric Bohlman)
Subject: Re: More fun with Hashes of Lists...
Message-Id: <ebohlmanFDsEuz.Dtq@netcom.com>

Mitch (portboy@home.com) wrote:
: If I have a hash of a list like:
: 
: $foo{coke} where the coke array contains, sucks bites rules.  How can
: I easily append an element to the end of the coke array?  I know I can
: add an element like $foo{coke}[3] = "dominates";  However, can I add
: dominates to coke in a form like I just mentioned without knowing what
: size the array is?  Or do I need to get the array's size?  If so, how?

perldoc -f push



------------------------------

Date: Wed, 23 Jun 1999 15:02:10 GMT
From: big_sal@my-deja.com
Subject: Need Help with interesting Perl problem.
Message-Id: <7kqsta$967$1@nnrp1.deja.com>

//************************************************************



Here's the problem, if you do a comparson like this:

$compare = "fred";

foreach (bla bla bla)
{


     if (/$compare/is)
     {
          ...
     }

}


well, if $compare is set to "C++" or "X++" or anything "++", the script
will stop executing.

Any ideas about how to get it to work properly???


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


------------------------------

Date: Wed, 23 Jun 1999 09:47:22 -0400
From: Ala Qumsieh <aqumsieh@matrox.com>
Subject: Re: Newbie- foreach $var (keys %fields) - Outputs in wrong order ?????
Message-Id: <x3yn1xrc9lh.fsf@tigre.matrox.com>


Kevin Hancock <khan@arcom.com.au> writes:

> Tryin g to write my first Perl script and so far so good. everything is
> working OK except the output from "foreach $var (keys %fields)" is not
> in the order the data was added to the array.

Of course not, since %fields is a hash, not an array. Had you read the
docs (perlfunc to be exact) you would've found this:

     keys HASH
             Returns a normal array consisting of all the keys of
             the named hash.  (In a scalar context, returns the
             number of keys.)  The keys are returned in an
             apparently random order, but it is the same order as
             either the values() or each() function produces
             (given that the hash has not been modified).

> The data seems to be stored in correct order but "foreach $var (keys
> %fields)" outputs in wrong order?

"wrong" is subjective.

> I am sure I am doing something simple wrong here.

Yes. You are not reading the docs.

> Any ideas?

Read more docs and FAQs. Browse through perlfaq4 to find the answer
for this question:

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

HTH,
Ala



------------------------------

Date: Wed, 23 Jun 1999 16:24:45 +0100
From: Matt Sergeant <matt.sergeant@ericsson.com>
Subject: Re: NT - Server Up time
Message-Id: <3770FC3D.953521A4@ericsson.com>

mirak63@yahoo.com wrote:
> 
> Hello,
> 
> Is there a way in Perl to be able to determine the time
> and date that an NT server came up?

Win32::GetTickCount()

But I can't remember what exactly it returns <g>... (hint: It's not
seconds since 1970).

Matt.


------------------------------

Date: Wed, 23 Jun 1999 08:29:17 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: NT - Server Up time
Message-Id: <Pine.GSO.4.02A.9906230827100.1698-100000@user2.teleport.com>

On Wed, 23 Jun 1999 mirak63@yahoo.com wrote:

> Is there a way in Perl to be able to determine the time
> and date that an NT server came up?

Is there a way in any other language to do this? If it's possible at all,
it's possible in Perl. You should probably consult the docs, FAQs, and
newsgroups about NT server issues. Do you know where to find those?

Cheers!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



------------------------------

Date: Wed, 23 Jun 1999 16:39:16 +0100
From: Dave Cross <dave@dave.org.uk>
Subject: Re: Running simple perl scripting
Message-Id: <3770FFA4.6A085185@dave.org.uk>

coxey wrote:
> 
> we are trying to run a simple perl 5 script on an NT internet server running
> IIS 4.
> when we run these simple scripts ( e.g making a wb page say 'hello' ) we get
> all the formatting ( print , \n , etc ) that goes with the HTML as well as
> the text ( properly formatted ).
> 
> anyone know what we're doing wrong ?  we seem to have tried everything

1/ Are you returning a valid CGI header?

2/ Is your web server configured correctly?

Dave...


------------------------------

Date: Wed, 23 Jun 1999 08:54:47 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Running simple perl scripting
Message-Id: <Pine.GSO.4.02A.9906230854310.1698-100000@user2.teleport.com>

On Wed, 23 Jun 1999, coxey wrote:

> when we run these simple scripts ( e.g making a wb page say 'hello' )

When you're having trouble with a CGI program in Perl, you should first
look at the please-don't-be-offended-by-the-name Idiot's Guide to solving
such problems. It's available on CPAN.

   http://www.perl.com/CPAN/
   http://www.perl.org/CPAN/
   http://www.perl.org/CPAN/doc/FAQs/cgi/idiots-guide.html
   http://www.perl.org/CPAN/doc/manual/html/pod/

Hope this helps!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



------------------------------

Date: Wed, 23 Jun 1999 14:59:37 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: Statistics for comp.lang.perl.misc
Message-Id: <3770f544.1738101@news.skynet.be>

Abigail wrote:

>() >I don't think FAQs are
>() >original content, but Gregs little program thinks they are.

>Oh, I wasn't thinking about TomC. I was thinking about the people TomC
>replies to.

??? You mean people typing in a question from scratch, that happens to
be a FAQ, is not original content, but a post by somebody who drags in a
lot of precanned text IS original? 

That's a strange definition.

	Bart.


------------------------------

Date: Wed, 23 Jun 1999 08:16:58 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: system exec
Message-Id: <Pine.GSO.4.02A.9906230813500.1698-100000@user2.teleport.com>

On Wed, 23 Jun 1999 jmtth@my-deja.com wrote:

> From my perl script I want to execute a batch file (mybat.bat) which
> set environnement's variables. At the end of batch's execution ; perl
> script must know those variables.

A child process can't set the parent's variables. But it can tell the
parent how to set them. You could add some code to the end of your batch
file to report the names and values of the variables. If you call the
command with backticks, you'll be able to parse the returned text within
Perl. See the perlop manpage for information on qx``. See the docs for
batch files to find out how to report the names and values of environment
variables on your system.

> How can I execute my batch in the script's process and in order to don't
> shortcut the end of the script ?

You seem to be (mis)using exec. See the perlfunc manpage for more info.

Cheers!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



------------------------------

Date: Wed, 23 Jun 1999 09:57:02 -0400
From: Ala Qumsieh <aqumsieh@matrox.com>
Subject: Re: Timing out problem...Suggestions?
Message-Id: <x3yk8svc95d.fsf@tigre.matrox.com>


Mitch <portboy@home.com> writes:

>                                             when I try to type a
> command at my "prompt>" it immediately exits the script.  Can someone
> explain to me why this is happening?

[snip]

> sub timer
> {
>         eval {
>                 alarm(5);
>                 if ($delta == 1) {
>                         &show(&prompt2);
>                 } else {
>                         &show(&prompt);
>                 }
>                 my ($an) = &get_line;
>                 ($cmd, @args) = split(/\s+/, $an);
>                 alarm(0);
>         };
>         if ($@ =~ /timeout/) {
>                 &logout;  # returns the user to the password prompt.
>         } else {
>                 alarm(0);
>                 die;

Could it be this die() statement?

>         }
> }



------------------------------

Date: Wed, 23 Jun 1999 08:25:48 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Transparent proxy ?
Message-Id: <Pine.GSO.4.02A.9906230819170.1698-100000@user2.teleport.com>

On Wed, 23 Jun 1999, Anders Johansson wrote:

> I'm trying to make a queued entry to a videoserver.
> 
> ID for each caller is to be given by either hidden values(Forms) or
> cookies (other suggestions are welcome)
> 
> The proxy must be transparent and when the caller is in the conection
> is streaming. Time is limited if there exists a queue, but when I've
> opened a connection to the caller how do I check the time on?
> 
> pause every 10000 bytes and check time ?
> 
> really unsure how to do this....

Maybe you should start by learning about Perl. Perl could be very useful
for making a program like this. In fact, there are some examples which do
similar sorts of things among Randal's Web Techniques columns.

   http://www.stonehenge.com/merlyn/WebTechniques/

Cheers!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



------------------------------

Date: Wed, 23 Jun 1999 11:34:18 -0400
From: Jackie Stock <jackie.stock@2jhuapl.edu>
To: Jackie Stock <jackie.stock@2jhuapl.edu>
Subject: Re: Using ROLLBACK() w/ DBI Module
Message-Id: <3770FE7A.E6ABC7D9@2jhuapl.edu>

I wanted to include a little more information of the following problem:

I am trying to issue a rollback command to the Oracle database
(  $dbh->rollback; )
And, I get the response that the rollback is ineffective because
autocommit is on.
Okay, so how do I set autocommit to off.
I tried
( $dbh->do("set autocommit off"); )
but it didn't like that.

Any ideas???
Thanks again.
Jackie Stock
jacqueline.stock@jhuapl.edu
**************************************
Jackie Stock wrote:

> I am trying to use the rollback and commit commands on an Oracle
> Database.  I am using the DBI module and have successfully used the
> SELECT, INSERT, UPDATE, DELETE commands.
>
> Has anyone used the rollback/commit SQL commands?
>
> Thanks.
> Jackie Stock
> (240) 228 - 3409
> jacqueline.stock@jhuapl.edu



------------------------------

Date: Wed, 23 Jun 1999 15:46:33 GMT
From: Gareth Rees <garethr@cre.canon.co.uk>
To: Jackie Stock <jackie.stock@2jhuapl.edu>
Subject: Re: Using ROLLBACK() w/ DBI Module
Message-Id: <si4sjydina.fsf@cre.canon.co.uk>

Jackie Stock <jackie.stock@2jhuapl.edu> wrote:
> I am trying to issue a rollback command to the Oracle database.  I get
> the response that the rollback is ineffective because autocommit is
> on.  Okay, so how do I set autocommit to off?

The DBI manpage says:

     Example:

       $h->{AutoCommit} = ...;       # set/write
       ... = $h->{AutoCommit};       # get/read

     AutoCommit  (boolean)
         If true then database changes cannot be rolled-back
         (undone).  If false then database changes automatically
         occur within a 'transaction' which must either be
         committed or rolled-back using the commit or rollback
         methods.

         Drivers should always default to AutoCommit mode. (An
         unfortunate choice forced on the DBI by ODBC and JDBC
         conventions.)

So `$handle->{AutoCommit} = 0' will turn it off.

-- 
Gareth Rees


------------------------------

Date: Wed, 23 Jun 1999 08:13:01 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Variable not imported
Message-Id: <Pine.GSO.4.02A.9906230811020.1698-100000@user2.teleport.com>

On Wed, 23 Jun 1999, Arnaud Limbourg wrote:

> i define this variable:
> $mail_command = "$dosmail_path$dosmail_prog -C \"-sOUR TEST MESSAGE
> SUBJECT\" -f$mail_from $mail_to $dosmail_path/$nom";
> 
> Then i call it with:
> system ("$mail_command");
> 
> but i get an variable not imported error.

Why do you have quote marks around $mail_command? They're misleading, at
best.

Exactly which error message did you get? This one is documented in the
perldiag manpage:

    =item Variable "%s" is not imported%s

    (F) While "use strict" in effect, you referred to a global variable
    that you apparently thought was imported from another module, because
    something else of the same name (usually a subroutine) is exported
    by that module.  It usually means you put the wrong funny character
    on the front of your variable.

But this doesn't look as if it's what you're talking about....

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



------------------------------

Date: Wed, 23 Jun 1999 15:41:41 GMT
From: RoLm <rolm@my-deja.com>
Subject: Re: Viral matters [completely off-topic]
Message-Id: <7kqv7i$a85$1@nnrp1.deja.com>

In article <3770eb36@cs.colorado.edu>,
  tchrist@mox.perl.com (Tom Christiansen) wrote:
> After the recent flourish of writings on the issue of viruses in the
> popular press and the frequently miswritten plural forms of virus seen
> on the net, I decided to do some research into the matter.  The result
> is
>
>     http://language.perl.com/misc/virus.html
>
> Feel free to point others thither.  No, Unix has no viruses.  Neither
> does Perl.

IMHO, UNIX has viruses.  but we call them hackers.

RoLm


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


------------------------------

Date: Wed, 23 Jun 1999 08:46:24 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: webget, perl 5.005_03 on Linux, cryptic error
Message-Id: <Pine.GSO.4.02A.9906230843260.1698-100000@user2.teleport.com>

On Wed, 23 Jun 1999, marek jedlinski wrote:

> I've been trying to run Jeffrey Friedl's 'webget' 

While that may be a fine program, you may find it easier to use LWP (and
LWP::Simple). You can get LWP from CPAN.

> Now, I know way too little to even think of fixing the problem, but it
> looks like some incompatibility at a deep (socket?) level.

Yes - the kind of thing that would be taken care of at build time with
LWP.

Cheers!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



------------------------------

Date: 12 Dec 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Special: Digest Administrivia (Last modified: 12 Dec 98)
Message-Id: <null>


Administrivia:

Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing. 

]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body.  Majordomo will then send you instructions on how to confirm your
]subscription.  This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.

The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V8 Issue 6108
**************************************

home help back first fref pref prev next nref lref last post