[19148] in Perl-Users-Digest
Perl-Users Digest, Issue: 1343 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Jul 20 18:06:08 2001
Date: Fri, 20 Jul 2001 15:05:16 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <995666715-v10-i1343@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Fri, 20 Jul 2001 Volume: 10 Number: 1343
Today's topics:
a subroutine as a string? <Griff_member@newsguy.com>
Re: a subroutine as a string? <r1ckey@home.com>
Re: a subroutine as a string? <weiss@kung.foo.at>
Re: a subroutine as a string? (Craig Berry)
Re: Anyone used blat.exe? <shawn@edgeofsanity.com>
Re: don't laugh <james@zephyr.org.uk>
Re: dumb question (Greg Bacon)
Re: dumb question <andras@mortgagestats.com>
Re: dumb question <godzilla@stomp.stomp.tokyo>
Re: dumb question <andras@mortgagestats.com>
Re: dumb question ctcgag@hotmail.com
Re: dumb question <godzilla@stomp.stomp.tokyo>
FAQ: Why don't Perl one-liners work on my DOS/Mac/VMS s <faq@denver.pm.org>
Re: GPIB / Parrallel port (Andy Dougherty)
How to generate an image in real time? <sky@mail.lviv.ua>
Re: How to generate an image in real time? <ilya@martynov.org>
Re: How to generate an image in real time? <schabernackel@hotmail.com>
Re: ide for perl? <shawn@edgeofsanity.com>
Re: ide for perl? <paulverjans@hotmail.com>
Re: Insecure dependency in require error? nobull@mail.com
Re: Insecure dependency in require error? <shah@typhoon.xnet.com>
Re: is the UK serious about perl? <spamhater@keepyourfilthyspamtoyourself.co.uk>
manpage styles/templates??? <ekulis@apple.com>
Re: manpage styles/templates??? <tsee@gmx.net>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 20 Jul 2001 10:50:40 -0700
From: Griff Hamlin, III <Griff_member@newsguy.com>
Subject: a subroutine as a string?
Message-Id: <9j9r1g0279t@drn.newsguy.com>
Hello,
I'm trying to use a small subroutine as a string variable and then pass that to
an eval. Eventually this is to be used with mysql and a more complicated scheme,
but I have a small test program that I can't get to work. Does anyone know why I
get an error running this:
#!/usr/local/bin/perl
$hook="sub {print 'hello world'; }";
print "hook is '$hook'\n";
eval { &{$hook}(); };
print "$@\n";
The error is:
Undefined subroutine &sub {print 'hello world::; } called at ./testhook.pl line
5.
This will be working with a commercial software module, and the eval is from
their software, so I can't really change it without affecting other things. I
have to figure out how to make the string correct.
Any help would be greatly appreciated.
Griff Hamlin, III
------------------------------
Date: Fri, 20 Jul 2001 19:55:36 GMT
From: Rickey Ingrassia <r1ckey@home.com>
Subject: Re: a subroutine as a string?
Message-Id: <Y0067.39361$wr.219736@news1.frmt1.sfba.home.com>
Griff Hamlin, III <Griff_member@newsguy.com> on 20 Jul 2001 10:50:40 -0700 wrote:
>Hello,
>I'm trying to use a small subroutine as a string variable and then pass that to
>an eval. Eventually this is to be used with mysql and a more complicated scheme,
>but I have a small test program that I can't get to work. Does anyone know why I
>get an error running this:
>#!/usr/local/bin/perl
>$hook="sub {print 'hello world'; }";
^ remove double quotes ^
>print "hook is '$hook'\n";
print "\$hook is " . ref($hook) . "\n"; # use the ref function to peek inside
>eval { &{$hook}(); };
eval { &$hook; }; # you have a lot going on that is screwing you up
>print "$@\n";
print $@ if $@ # don't print it if it isn't there
print "\n"; # good clean exit to new command prompt
>The error is:
>Undefined subroutine &sub {print 'hello world::; } called at ./testhook.pl line
>5.
>This will be working with a commercial software module, and the eval is from
>their software, so I can't really change it without affecting other things. I
>have to figure out how to make the string correct.
>Any help would be greatly appreciated.
>Griff Hamlin, III
--
____ __
______/_ | ____ | | __ ____ ___.__.
\_ __ \ |/ ___\| |/ // __ < | |
| | \/ \ \___| <\ ___/\___ |
|__| |___|\___ >__|_ \\___ > ____|
_________________\/_____\/____\/\/_____
---------------------------------------
------------------------------
Date: Fri, 20 Jul 2001 22:17:00 +0200
From: "Stefan Weiss" <weiss@kung.foo.at>
Subject: Re: a subroutine as a string?
Message-Id: <3b58910b$1@e-post.inode.at>
<Griff Hamlin>; "III" <Griff_member@newsguy.com> wrote:
> $hook="sub {print 'hello world'; }";
> print "hook is '$hook'\n";
> eval { &{$hook}(); };
> print "$@\n";
> the eval is from their software, so I can't really change it without
> affecting other things. I have to figure out how to make the string
> correct.
Depending on which parts of the code you have access to, you could
try one of these:
# their code
$hook = q[ sub { print "hello world\n" } ];
# your code
$func = eval $hook;
$func->();
# your code
$hook = sub { print "hello world\n" };
# their code
eval { &{$hook}(); };
> Griff Hamlin, III
cheers,
stefan weiss, I
------------------------------
Date: Fri, 20 Jul 2001 21:34:32 -0000
From: cberry@cinenet.net (Craig Berry)
Subject: Re: a subroutine as a string?
Message-Id: <tlh8v8eem1nd22@corp.supernews.com>
GriffHamlin wrote:
: I'm trying to use a small subroutine as a string variable and then pass
: that to an eval. Eventually this is to be used with mysql and a more
: complicated scheme, but I have a small test program that I can't get to
: work. Does anyone know why I get an error running this:
You need to eval the definition, not the call:
: $hook="sub {print 'hello world'; }";
: print "hook is '$hook'\n";
my $hookref = eval $hook;
print $@ if $@;
$hookref->();
--
| Craig Berry - http://www.cinenet.net/~cberry/
--*-- "Brute force done fast enough looks slick."
| - William Purves
------------------------------
Date: Fri, 20 Jul 2001 11:30:02 -0400
From: "Shawn Scott" <shawn@edgeofsanity.com>
Subject: Re: Anyone used blat.exe?
Message-Id: <9j9ip2$2n6$1@unix2.broadviewnet.net>
Why not use the Net::SMTP module on CPAN
http://search.cpan.org/search?dist=libnet
"Abigail" <abigail@foad.org> wrote in message
news:slrn9lbngo.nor.abigail@alexandra.xs4all.nl...
> Brian Spittles (ng@spittles.freeuk.com) wrote on MMDCCCLXXVII September
> MCMXCIII in <URL:news:bf39ltki7uu11g78hogaolui661so651fd@4ax.com>:
> ^^ Hi,
> ^^
> ^^ I'm trying to use blat.exe (after my host switched from Unix to NT).
> ^^ Following answers given (to other questions) in other NGs, I've
> ^^ constructed the following:
> ^^
> ^^ system qq(blat.exe "$body"
> ^^ -to "$rs22->Fields(3)->{Value}"
> ^^ -subject "Your squad"
> ^^ -i "$from"
> ^^ -body "$body");
> ^^
> ^^ As you can see, there's a mixture of scalars and hard-coded strings
> ^^ being passed to blat. So far, nothing has appeared in my mailbox!
>
> I guess that's because you have newlines in the call, and the NT
> shell, just like most other shells, thinks that a newline is a command
> separator?
>
>
>
> Abigail
> --
> use lib sub {($\) = split /\./ => pop; print $"};
> eval "use Just" || eval "use another" || eval "use Perl" || eval "use
Hacker";
------------------------------
Date: Fri, 20 Jul 2001 16:17:31 +0100
From: James Coupe <james@zephyr.org.uk>
Subject: Re: don't laugh
Message-Id: <uNMr+0SLuEW7Ewho@gratiano.zephyr.org.uk>
In message <slrn9lfe6c.iou.tadmc@tadmc26.august.net>, Tad McClellan
<tadmc@augustmail.com> writes
>>>@ARGV[$NUM] should be $ARGV[$NUM] , as perl would have told you of you'd
>>>used the -w switch.
>>
>>It's an array slice, so it'll "work" even if it isn't pretty.
>
>
>The point is that it only "works" _sometimes_.
Sorry, I didn't mean to suggest it was good practise or anything (hence
the quotation marks), just that it shouldn't stop this program
functioning currently/
--
James Coupe PGP Key: 0x5D623D5D
EBD690ECD7A1F
She twirled a lock of hair around her forefinger and smiled B457CA213D7E6
faintly. "Actually, I'd settle for a small Greek." 68C3695D623D5D
------------------------------
Date: Fri, 20 Jul 2001 15:26:06 -0000
From: gbacon@HiWAAY.net (Greg Bacon)
Subject: Re: dumb question
Message-Id: <tlgjcet4ickba5@corp.supernews.com>
In article <m1bsmgyd43.fsf@halfdome.holdit.com>,
Randal L. Schwartz <merlyn@stonehenge.com> wrote:
: >>>>> "sycorax" == sycorax <taghatta@midway.uchicago.edu> writes:
:
: sycorax> Thanks for the responses. Actually, I'm afraid I didn't
: sycorax> really ask the question I needed answered: what I really need
: sycorax> to do is select a series of random keys from a hash whose
: sycorax> corresponding values add to a particular sum.
:
: Ahh! The knapsack problem. [...]
The 0/1 Knapsack problem is similar, but sycorax is describing
SUBSET-SUM, which is, as you noted, NP-complete.
Greg
--
It's a miracle that curiosity survives formal education.
-- Albert Einstein
------------------------------
Date: Fri, 20 Jul 2001 12:21:13 -0400
From: Andras Malatinszky <andras@mortgagestats.com>
Subject: Re: dumb question
Message-Id: <3B585A78.AE472A1E@mortgagestats.com>
"Randal L. Schwartz" wrote:
> >>>>> "sycorax" == sycorax <taghatta@midway.uchicago.edu> writes:
>
> sycorax> Thanks for the responses. Actually, I'm afraid I didn't
> sycorax> really ask the question I needed answered: what I really need
> sycorax> to do is select a series of random keys from a hash whose
> sycorax> corresponding values add to a particular sum.
>
> Ahh! The knapsack problem. That's provably unsolvable
Unless you are prepared to show that P != NP, I must assume you made a typo and
you really meant "probably unsolvable" :-)
> , except by
> brute force (trying all the possibilities to see if the condition is
> true or not).
------------------------------
Date: Fri, 20 Jul 2001 10:33:42 -0700
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: dumb question
Message-Id: <3B586B76.3B37565A@stomp.stomp.tokyo>
Andras Malatinszky wrote:
> Randal L. Schwartz wrote:
> > sycorax wrote:
(snipped)
> > > Thanks for the responses. Actually, I'm afraid I didn't
> > > really ask the question I needed answered: what I really need
> > > to do is select a series of random keys from a hash whose
> > > corresponding values add to a particular sum.
> > Ahh! The knapsack problem. That's provably unsolvable
> Unless you are prepared to show that P != NP, I must assume you
> made a typo and you really meant "probably unsolvable" :-)
Proof of this problem being without solution is quite easy
and this proof is just as easily stated in one logical step
via a question,
"What are the contents of the originating author's hash?"
Both of the originating author's articles are so absolutely
incoherent, there are myriad interpretations of what is being
asked. Nobody can provide solution code save for the originating
author. Randal is correct per his personal perception of what
is being asked.
Your thinking is as flawed as is the originating author's articles.
Godzilla!
------------------------------
Date: Fri, 20 Jul 2001 14:36:47 -0400
From: Andras Malatinszky <andras@mortgagestats.com>
Subject: Re: dumb question
Message-Id: <3B587A3E.BE45806@mortgagestats.com>
"Godzilla!" wrote:
> Andras Malatinszky wrote:
>
> > Randal L. Schwartz wrote:
> > > sycorax wrote:
>
> (snipped)
>
> > > > Thanks for the responses. Actually, I'm afraid I didn't
> > > > really ask the question I needed answered: what I really need
> > > > to do is select a series of random keys from a hash whose
> > > > corresponding values add to a particular sum.
>
> > > Ahh! The knapsack problem. That's provably unsolvable
>
> > Unless you are prepared to show that P != NP, I must assume you
> > made a typo and you really meant "probably unsolvable" :-)
>
> Proof of this problem being without solution is quite easy
> and this proof is just as easily stated in one logical step
> via a question,
>
> "What are the contents of the originating author's hash?"
>
> Both of the originating author's articles are so absolutely
> incoherent, there are myriad interpretations of what is being
> asked. Nobody can provide solution code save for the originating
> author. Randal is correct per his personal perception of what
> is being asked.
>
> Your thinking is as flawed as is the originating author's articles.
>
> Godzilla!
You don't even understand what we are talking about, do you? What
relevance does the OP's hash have to the question whether the knapsack
problem is solvable in polynomial time?
------------------------------
Date: 20 Jul 2001 18:37:38 GMT
From: ctcgag@hotmail.com
Subject: Re: dumb question
Message-Id: <20010720143738.962$5e@newsreader.com>
sycorax <taghatta@midway.uchicago.edu> wrote:
> Thanks for the responses. Actually, I'm afraid I didn't really ask the
> question I needed answered: what I really need to do is select a
> series of random keys from a hash whose corresponding values add to a
> particular sum.
Sounds like homework, but it's fun and I haven't done recursion in perl
before, so here's my proposed solution.
#!/usr/bin/perl -w
use strict;
use diagnostics;
my %hash = ( apple => 1,
banana => 2,
pear => 4,
bear => 8,
beer => 16,
deer => 32,
dear => 64,
tear => 128,
) ;
sub findsum {
my $need = shift or return [];
my $key = shift or return undef ;
my $x = findsum($need,@_);
return $x if $x;
$x = findsum($need-$hash{$key} , @_ );
return [@$x , $key] if $x;
return undef;
};
my $ref = findsum( $ARGV[0] , keys %hash);
print $ref ? "solution:@$ref:" : "no solution" , "\n";
__END__
knapsack.pl 7
solution:apple banana pear:
Seems to work.
I'd like to get of rid of $x entirely, but can't figure out how to do it
efficiently. (without just changing the name to something else)
return findsum($need,@_) || (findsum($need-$hash{$key},@_) ?
[@{findsum($need-$hash{$key},@_)}, $key ]
: undef );
Seems to work, but calls the same findsum twice with the same parameters.
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service
------------------------------
Date: Fri, 20 Jul 2001 12:29:04 -0700
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: dumb question
Message-Id: <3B588680.862FC953@stomp.stomp.tokyo>
Andras Malatinszky whined:
> Godzilla! wrote:
> > Andras Malatinszky wrote:
> > > Randal L. Schwartz wrote:
> > > > sycorax wrote:
> > (snipped)
> > > > > Thanks for the responses. Actually, I'm afraid I didn't
> > > > > really ask the question I needed answered: what I really need
> > > > > to do is select a series of random keys from a hash whose
> > > > > corresponding values add to a particular sum.
> > > > Ahh! The knapsack problem. That's provably unsolvable
> > > Unless you are prepared to show that P != NP, I must assume you
> > > made a typo and you really meant "probably unsolvable" :-)
> > Proof of this problem being without solution is quite easy
> > and this proof is just as easily stated in one logical step
> > via a question,
> > "What are the contents of the originating author's hash?"
> > Both of the originating author's articles are so absolutely
> > incoherent, there are myriad interpretations of what is being
> > asked. Nobody can provide solution code save for the originating
> > author. Randal is correct per his personal perception of what
> > is being asked.
> > Your thinking is as flawed as is the originating author's articles.
> You don't even understand what we are talking about, do you?
Your use of plural "we" is confirmation of your flawed thinking and,
your diminished communicative skills, further exasperated by your
missing a chance to harass me for my use of a singular baited "is."
> What relevance does the OP's hash have to the question whether the knapsack
> problem is solvable in polynomial time?
What are the contents of the originating author's hash? Without
clear and concise parameters, no solution can be offered nor
can the originating author's article be reliably understood.
Is he asking a classic "knapsnack" question or not?
It is annoyingly clear you a unaware a knapsnack problem and this
"hinted" at problem of the originating author's, both have an
infinite number of solution sets. It is equally annoyingly clear
you don't have clue on just what is the knapsnack problem.
Regardless of personal interpretation by a person, any solution
offered for the author's incoherent articles, is inherently flawed
unless infinite solution sets are produced by any given code.
Incidently, enter a value of 0 (zero) or a value of 1 (one)
within your code for number of terms, this is, the flawed code
you posted under one of your fake names. I am most certain an
entered value of one will cause your brains to explode. Another
flaw is your code relies on generating the smallest possible
numbers within a solution set rather than offering purely random
solution sets. Your solution sets are nearly identical each run.
The originating author did say "random" right? Humorously, his
word "random" is about the only thing which is understandable.
Clearly my "clarity" program performs a better job, a more
imaginative job, by offering 22,084,947,919,456,858,275,840,000
solution sets, than does your "available anywhere" subset code,
which offers ever-so-boring repetitious solution sets.
I find your troll articles as boring as your are boarish.
If you keep flaunting your flawed thinking, God, in Her
infinite wisdom, is likely to issue a factory recall for
you and, others like you.
Godzilla! God's Ms. Goodwrench.
--
print "0/0 = [-n .. 0 .. +n]";
------------------------------
Date: Fri, 20 Jul 2001 18:17:53 GMT
From: PerlFAQ Server <faq@denver.pm.org>
Subject: FAQ: Why don't Perl one-liners work on my DOS/Mac/VMS system?
Message-Id: <lB_57.18$zH9.189240320@news.frii.net>
This message is one of several periodic postings to comp.lang.perl.misc
intended to make it easier for perl programmers to find answers to
common questions. The core of this message represents an excerpt
from the documentation provided with every Standard Distribution of
Perl.
+
Why don't Perl one-liners work on my DOS/Mac/VMS system?
The problem is usually that the command interpreters on those systems
have rather different ideas about quoting than the Unix shells under
which the one-liners were created. On some systems, you may have to
change single-quotes to double ones, which you must *NOT* do on Unix or
Plan9 systems. You might also have to change a single % to a %%.
For example:
# Unix
perl -e 'print "Hello world\n"'
# DOS, etc.
perl -e "print \"Hello world\n\""
# Mac
print "Hello world\n"
(then Run "Myscript" or Shift-Command-R)
# VMS
perl -e "print ""Hello world\n"""
The problem is that none of these examples are reliable: they depend on
the command interpreter. Under Unix, the first two often work. Under
DOS, it's entirely possible that neither works. If 4DOS was the command
shell, you'd probably have better luck like this:
perl -e "print <Ctrl-x>"Hello world\n<Ctrl-x>""
Under the Mac, it depends which environment you are using. The MacPerl
shell, or MPW, is much like Unix shells in its support for several
quoting variants, except that it makes free use of the Mac's non-ASCII
characters as control characters.
Using qq(), q(), and qx(), instead of "double quotes", 'single quotes',
and `backticks`, may make one-liners easier to write.
There is no general solution to all of this. It is a mess, pure and
simple. Sucks to be away from Unix, huh? :-)
[Some of this answer was contributed by Kenneth Albanowski.]
-
Documents such as this have been called "Answers to Frequently
Asked Questions" or FAQ for short. They represent an important
part of the Usenet tradition. They serve to reduce the volume of
redundant traffic on a news group by providing quality answers to
questions that keep coming up.
If you are some how irritated by seeing these postings you are free
to ignore them or add the sender to your killfile. If you find
errors or other problems with these postings please send corrections
or comments to the posting email address or to the maintainers as
directed in the perlfaq manual page.
Answers to questions about LOTS of stuff, mostly not related to
Perl, can be found by pointing your news client to
news:news.answers
or to the many thousands of other useful Usenet news groups.
Note that the FAQ text posted by this server may have been modified
from that distributed in the stable Perl release. It may have been
edited to reflect the additions, changes and corrections provided
by respondents, reviewers, and critics to previous postings of
these FAQ. Complete text of these FAQ are available on request.
The perlfaq manual page contains the following copyright notice.
AUTHOR AND COPYRIGHT
Copyright (c) 1997-1999 Tom Christiansen and Nathan
Torkington. All rights reserved.
This posting is provided in the hope that it will be useful but
does not represent a commitment or contract of any kind on the part
of the contributers, authors or their agents.
03.26
--
This space intentionally left blank
------------------------------
Date: Fri, 20 Jul 2001 18:54:29 -0000
From: doughera@maxwell.phys.lafayette.edu (Andy Dougherty)
Subject: Re: GPIB / Parrallel port
Message-Id: <slrn9lgvln.ga8.doughera@maxwell.phys.lafayette.edu>
In article <3B582D20.648C762B@yahoo.com>, Jason LaPenta wrote:
>Hello,
>
>Has anyone used perl to communicate to GPIB or a PC parallel port under
>ms windows or linux? How did you do it? Did it work well?
Yes, I use the GPIB module from the Linux lab project to talk to the
GPIB under Linux. It works just fine. I picked it up from
http://www.cs.unc.edu/~tell
but that was some time ago.
--
Andy Dougherty doughera@lafayette.edu
Dept. of Physics
Lafayette College, Easton PA 18042
------------------------------
Date: Fri, 20 Jul 2001 18:42:43 +0300
From: Roman Khutkyy <sky@mail.lviv.ua>
Subject: How to generate an image in real time?
Message-Id: <3B585173.BF84CCF@mail.lviv.ua>
Is there anybody who know how to generate an image (gif, jpeg) based on
mathematical calculations.
For example: how to create counter logo that displays like an image
insteade of using simple text.
Thank you.
Roman Khutkyy
------------------------------
Date: 20 Jul 2001 20:05:59 +0400
From: Ilya Martynov <ilya@martynov.org>
Subject: Re: How to generate an image in real time?
Message-Id: <87y9pjziu0.fsf@abra.ru>
RK> Is there anybody who know how to generate an image (gif, jpeg) based on
RK> mathematical calculations.
RK> For example: how to create counter logo that displays like an image
RK> insteade of using simple text.
RK> Thank you.
You can use Image::Magick to create counter logo from a set of images
with a numbers from 0 to 9.
Or you you can draw counter image using GD.
Both libraries are available from CPAN.
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| Ilya Martynov (http://martynov.org/) |
| GnuPG 1024D/323BDEE6 D7F7 561E 4C1D 8A15 8E80 E4AE BE1A 53EB 323B DEE6 |
| AGAVA Software Company (http://www.agava.com/) |
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
------------------------------
Date: Fri, 20 Jul 2001 21:41:12 GMT
From: Haber Schabernackel <schabernackel@hotmail.com>
Subject: Re: How to generate an image in real time?
Message-Id: <1103_995665657@f3bpc14>
On 20 Jul 2001 20:05:59 +0400, Ilya Martynov <ilya@martynov.org> wrote:
> RK> Is there anybody who know how to generate an image (gif, jpeg) based on
> RK> mathematical calculations.
> RK> For example: how to create counter logo that displays like an image
> RK> insteade of using simple text.
> RK> Thank you.
>
> You can use Image::Magick to create counter logo from a set of images
> with a numbers from 0 to 9.
> Or you you can draw counter image using GD.
ImageMagik can also write text on an empty image.
> Both libraries are available from CPAN.
------------------------------
Date: Fri, 20 Jul 2001 12:14:29 -0400
From: "Shawn Scott" <shawn@edgeofsanity.com>
Subject: Re: ide for perl?
Message-Id: <9j9lce$341$1@unix2.broadviewnet.net>
I use EditPlus It is an excellent perl editor for Windows.
http://www.editplus.com
I tried activestates Komodo and it seemed slow and sluggish. I have tried a
bunch of editors and I always go back to EditPlus.
-Shawn
"Jeff D. Hamann" <jeff_hamann@hamandonald.com> wrote in message
news:9j76lh$hc9$1@sevenofnine.peak.org...
> Okay, I know this is going to sound soooo non-unix, but is there an ide
that
> supports perl out there. VB is killing me but I need to be able to debug
> script code before running huge databas processing tasks that call shared
> libs... i guess the ultimate would be an ide that supports c,php, and
perl,
> but that's the breaks i guess....
>
> Thanks,
> Jeff.
>
> --
> Jeff D. Hamann
> Hamann, Donald and Associates
> PO Box 1421
> Corvallis, Oregon USA 97339-1421
> 541-740-5988
> jeff_hamann@hamanndonald.com
> www.hamanndonald.com
>
>
>
------------------------------
Date: Fri, 20 Jul 2001 20:23:07 GMT
From: "Paul Verjans" <paulverjans@hotmail.com>
Subject: Re: ide for perl?
Message-Id: <Lq067.27204$E4.1108728@amsnews02.chello.com>
Some intresting Perl IDEs:
Perl Builder 2.0 at www.solutionsoft.com
another one I like very much is Optiperl 3 from
http://www.xarka.com/optiperl/
and the very easy to use DZSoft Perl Editor from
http://www.dzsoft.com/dzperl.htm
Hope you find one you like ..
Regards,
Paul
"Jeff D. Hamann" <jeff_hamann@hamandonald.com> wrote in message
news:9j76lh$hc9$1@sevenofnine.peak.org...
> Okay, I know this is going to sound soooo non-unix, but is there an ide
that
> supports perl out there. VB is killing me but I need to be able to debug
> script code before running huge databas processing tasks that call shared
> libs... i guess the ultimate would be an ide that supports c,php, and
perl,
> but that's the breaks i guess....
>
> Thanks,
> Jeff.
>
> --
> Jeff D. Hamann
> Hamann, Donald and Associates
> PO Box 1421
> Corvallis, Oregon USA 97339-1421
> 541-740-5988
> jeff_hamann@hamanndonald.com
> www.hamanndonald.com
>
>
>
------------------------------
Date: 20 Jul 2001 19:51:55 +0100
From: nobull@mail.com
Subject: Re: Insecure dependency in require error?
Message-Id: <u9d76vv3g4.fsf@wcl-l.bham.ac.uk>
anno4000@lublin.zrz.tu-berlin.de (Anno Siegel) writes:
> According to <nobull@mail.com>:
> > Hemant Shah <shah@typhoon.xnet.com> writes:
>
> > > Is there other documentation about writing secure code/modules.
> >
> > May of the luminaries of this group have their own web sites (and
> > books) of fine tutorials on a range of Perl subjects. I'm sure they
> > won't miss this chance to plug their wares!
>
> Then, of course, there is perldoc perlsec.
The OP asked for _other_ documentation.
--
\\ ( )
. _\\__[oo
.__/ \\ /\@
. l___\\
# ll l\\
###LL LL\\
------------------------------
Date: Fri, 20 Jul 2001 19:48:14 +0000 (UTC)
From: Hemant Shah <shah@typhoon.xnet.com>
Subject: Re: Insecure dependency in require error?
Message-Id: <9ja1tu$k9a$1@flood.xnet.com>
While stranded on information super highway nobull@mail.com wrote:
:)Hemant Shah <shah@typhoon.xnet.com> writes:
:)
:)> Insecure dependency in require while running setuid at
:)> /s3/gblcode/cob/sec/codedb/CodeDB_COBOL line 19.
:)
:)> use lib "$ENV{FCICSGBLCODE}/cob/sec/dynlib";
:)
:)All entries in %ENV are initially tainted. The above code therefore
:)puts a tainted value into @INC
:)
:)> require "codedb_lib.pm"; # This is line 19.
:)
:)This is presumably trying to load codedb_lib.pm from the tainted path.
:)
:)> I looked at perlsec man page, but was not able to find out how to fix the
:)> problem.
:)
:)Launder $ENV{FCICSGBLCODE} - assuming you are totally confident that
:)no unauthorised person could have set a value there.
:)
:)use lib "@{[ $ENV{FCICSGBLCODE} =~ /(.*)/ ]}/cob/sec/dynlib";
:)
Thanks. This was one of the problem.
Here is the one I do not know how to solve. How can I open a file to write?
Here is the code.
delete @ENV{'IFS', 'CDPATH', 'ENV', 'PATH'};
$HostName = `/bin/uname -n`;
$ErrFilePath = "@{[ $ENV{FCICSGBLCODE} =~ /(.*)/ ]}/dbcob/dberrs.$HostName";
open(ERRFILE, ">>$ErrFilePath");
I get following error:
Insecure dependency in open while running setuid
:)> How can I find out waht is tainted so I can fix the code.
:)
:)I do not know of any way to trace the back the cause of a tainting
:)other than manual analysis.
:)
:)> Is there other documentation about writing secure code/modules.
:)
:)May of the luminaries of this group have their own web sites (and
:)books) of fine tutorials on a range of Perl subjects. I'm sure they
:)won't miss this chance to plug their wares!
:)
:)--
:) \\ ( )
:) . _\\__[oo
:) .__/ \\ /\@
:) . l___\\
:) # ll l\\
:) ###LL LL\\
Thanks.
--
Hemant Shah /"\ ASCII ribbon campaign
E-mail: NoJunkMailshah@xnet.com \ / ---------------------
X against HTML mail
TO REPLY, REMOVE NoJunkMail / \ and postings
FROM MY E-MAIL ADDRESS.
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind, Above opinions are mine only.
it's backed up on tape somewhere. Others can have their own.
------------------------------
Date: Fri, 20 Jul 2001 10:36:08 -0700
From: Alan Wrigley <spamhater@keepyourfilthyspamtoyourself.co.uk>
Subject: Re: is the UK serious about perl?
Message-Id: <369d239d4a.spamhater@keepyourfilthyspamtoyourself.co.uk>
In message <90E48EC7CJacquiCarenigcouk@195.8.69.73>
Jacqui.Caren@ig.co.uk (Jacqui caren) wrote:
> I had expected that there would have been more 'professional' perl
> vacancies in the Uk by now but all this means is that we have
> little competition when we get around to expanding again. Good news
> for us - bad for the perception/reputation of perl within the UK.
Speaking as an experienced developer in a number of languages who is
very close to giving up on Silicon Valley and moving back to the UK
because of the dire state of the US hi-tech job market, I find this
thread very interesting. Please keep it going.
Alan
------------------------------
Date: Fri, 20 Jul 2001 11:06:38 -0700
From: Ed Kulis <ekulis@apple.com>
Subject: manpage styles/templates???
Message-Id: <3B587330.716E803C@apple.com>
Hi all,
Anybody know where I can get templates/styles to product Perl manpages
for:
Text HTML
Dreamweaver
Go live
Microsoft Word
Framemaker
I'm trying to avoid the tedium of working up my own formatting.
Thanks in advance :-)
-ed
------------------------------
Date: Fri, 20 Jul 2001 23:40:04 +0200
From: "Steffen Müller" <tsee@gmx.net>
Subject: Re: manpage styles/templates???
Message-Id: <9ja88b$lbl$00$1@news.t-online.com>
"Ed Kulis" <ekulis@apple.com> schrieb im Newsbeitrag
news:3B587330.716E803C@apple.com...
> Hi all,
>
> Anybody know where I can get templates/styles to product Perl manpages
> for:
>
> Text HTML
> Dreamweaver
> Go live
> Microsoft Word
> Framemaker
>
> I'm trying to avoid the tedium of working up my own formatting.
>
>
> Thanks in advance :-)
Try the pod format. Info should be in the existing man pages. The format is
*very* straight forward and can be converted to HTML via pod2html (Guess
what pod2man does).
Cheers,
Steffen Müller
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
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.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.
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 V10 Issue 1343
***************************************