[13581] in Perl-Users-Digest
Perl-Users Digest, Issue: 991 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Oct 5 13:05:38 1999
Date: Tue, 5 Oct 1999 10:05:24 -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: <939143123-v9-i991@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Tue, 5 Oct 1999 Volume: 9 Number: 991
Today's topics:
Re: ActivePerl Implementation Problem (subs mysteriousl <lsilver@information-concepts.com>
Re: ActivePerl (Scott McMahan)
Re: adding (summing) elements of an array (or hash) (Craig Berry)
Re: Advice from the Wise (Scott McMahan)
Re: altering contents of files <rhomberg@ife.ee.ethz.ch>
Call CGI Perl whithout Forms <gaetan@eii.fr>
Re: Call CGI Perl whithout Forms <azielke@hotmail.com>
Re: Conversion ASCII flat file into Excel spreadsheet f (Scott McMahan)
Re: DBI/CGI Problem (cmd line works, but webserver fail (David Salgado)
Re: HTML to ASCII (John Porter)
Re: HTML to ASCII <gellyfish@gellyfish.com>
Re: Interpret variable and its name? <rhomberg@ife.ee.ethz.ch>
Memory leak in assignment rob1234567@my-deja.com
Re: Need help with using "format" for String <elaine@chaos.wustl.edu>
Re: Newbie: Combining split and shift on One Statement <skilchen@swissonline.ch>
Re: Newbie: Combining split and shift on One Statement (Larry Rosler)
Re: pattern matching question <nessenj@jimsoffice.org>
Re: PERL CGI script works in concole but not with IIS o <flavell@mail.cern.ch>
Re: PERL CGI script works in concole but not with IIS o (Bill Moseley)
Regexp/Interpolation question <azielke@hotmail.com>
Re: Regexp/Interpolation question <rhomberg@ife.ee.ethz.ch>
Re: Simple - yet won't work! <AgitatorsBand@yahoo.com>
Re: Simple - yet won't work! <nihad@yahoo.com>
Re: Specifying start row for DB access (Scott McMahan)
Re: Split() on vertical bar | (Scott McMahan)
submitting data jaamaylem@usa.net
Re: submitting data (Bill Moseley)
tool to convert BMPs to GIFs programatically? <colinrei@oz.net>
Re: tool to convert BMPs to GIFs programatically? (Mark A. Hershberger)
Re: tool to convert BMPs to GIFs programatically? <mike@crusaders.no>
Re: tool to convert BMPs to GIFs programatically? (Scott McMahan)
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 05 Oct 1999 12:46:05 -0400
From: Lee Silver <lsilver@information-concepts.com>
To: David Amann <dove@synopsys.com>
Subject: Re: ActivePerl Implementation Problem (subs mysteriously redefined)
Message-Id: <37FA2B4D.2C02@information-concepts.com>
David:
Courtesy e-mail reply sent.
> In order to demo a web based application, I've been forced to move it to
> a Windows NT environment. I've installed ActivePerl and all of the
> various modules, but when I try to test my script from the command line
> I get a lot of the following errors:
>
> Screen.pm: Subroutine title redefined at ../cm-lib Screen.pm line 37.
>
> The same module on UNIX gives me no such problem. Is there something
> specific to the ActivePerl implementation I should be looking for? Does
> it handle namespaces differently?
I write scripts that I test under NT (with ActiveState) and that run
unchanged under UNIX. These incorporate both standard modules and
personal ones.
Screen.pm doesn't appear to be part of the standard NT distribution. In
what directory did you put that file (I keep my personal ones in
\perl\site\lib and they get found automatically by Perl.) What is line
37 of Screen.pm?
--
// Lee Silver
// Information Concepts Inc.
WE LISTEN.
------------------------------
Date: Tue, 05 Oct 1999 16:07:57 GMT
From: scott@aravis.softbase.com (Scott McMahan)
Subject: Re: ActivePerl
Message-Id: <xnpK3.1172$H32.71815@newshog.newsread.com>
joeyandsherry@mindspring.com wrote:
> I expected my Web Browser to open up and display Hello World!
> Have I really missed something, What gives?
Like I say in my book, "Web *browsers* are incapable of running CGI
programs. Only a web *server* can do the job." (p. 140)
I particularly like my euphamistic choice of words for bloatware, too,
"marvelously feature rich", when describing web browsers :) I don't
flat out say they're loaded so that they can hardly go, but you can read
between the lines. :)
Scott
http://autoperl.skwc.com Automating Windows With Perl
------------------------------
Date: Tue, 05 Oct 1999 16:07:09 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: adding (summing) elements of an array (or hash)
Message-Id: <rvk8hd1frad87@corp.supernews.com>
Rick Delaney (rick.delaney@home.com) wrote:
: Craig Berry wrote:
: > Anybody else have an idea on how to beat 'foreach'?
:
: use Benchmark;
: use List::Util;
:
: my @values = ( 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 );
: my $sum;
:
: timethese(100000, {
: 'foreach' => sub { $sum = 0; foreach (@values) { $sum += $_; } },
: 'eval' => sub { $sum = eval join ' + ', @values; },
: 'sum' => sub { $sum = List::Util::sum @values; },
: 'formula' => sub { $sum = @values * (@values + 1) / 2; },
: 'const' => sub { $sum = 55; },
: });
: __END__
: Benchmark: timing 100000 iterations of const, eval, foreach, formula,
: sum...
: const: 1 wallclock secs ( 0.49 usr + 0.00 sys = 0.49 CPU)
: eval: 83 wallclock secs (67.43 usr + 0.07 sys = 67.50 CPU)
: foreach: 5 wallclock secs ( 4.54 usr + 0.00 sys = 4.54 CPU)
: formula: 1 wallclock secs ( 1.68 usr + 0.00 sys = 1.68 CPU)
: sum: 2 wallclock secs ( 1.25 usr + 0.00 sys = 1.25 CPU)
Cute. :)
Thanks for pointing out List::Util::sum -- I didn't know that was there.
--
| Craig Berry - cberry@cinenet.net
--*-- Home Page: http://www.cinenet.net/users/cberry/home.html
| "There it is; take it." - William Mulholland
------------------------------
Date: Tue, 05 Oct 1999 16:11:49 GMT
From: scott@aravis.softbase.com (Scott McMahan)
Subject: Re: Advice from the Wise
Message-Id: <9rpK3.1173$H32.71815@newshog.newsread.com>
whos_john_galt@my-deja.com wrote:
> I sincerely appreciate any assistance.
Or, you could give stock options in this startup to a Perl programmer
who knew how to do this :) Why should we give you free advice and watch
you go public and retire?
> With this, the IT Manager explained his vision of reporting the
> information gathered on the SQL servers to the companies intranet on an
> NT system.
If you want to go with all-Microsoft technologies anyway, you might as
well use ASP too, since it is a tremendous timesaver. But don't expect to
port it anywhere, and be warned that NT has certain reliability problems
(called the "blue screen of death). Use ASP and PerlScript, and you'll
be in good shape.
Scott
------------------------------
Date: Tue, 05 Oct 1999 17:27:52 +0200
From: Alex Rhomberg <rhomberg@ife.ee.ethz.ch>
Subject: Re: altering contents of files
Message-Id: <37FA18F8.6405F6C4@ife.ee.ethz.ch>
alan rogers wrote:
>
> Hi,
>
> I wonder if anybody can help me with a problem I have.
> I have created a series of files through a while statement which works
> fine. What I want to do next is add to the contents the unix command "rm
> -f" so it will look like rm -f <contents>
> rm -f <contents>
rm -rf / #this will delete all the files you want to delete
ASSUMING you have the filename in an array @filenames and ASSUMING you
want to execute rm -f for each of the files, use
unlink @filenames or die qq*a horrible death because of $!*;
see perldoc -f unlink
- Alex
------------------------------
Date: Tue, 05 Oct 1999 17:56:15 +0200
From: Gaetan <gaetan@eii.fr>
Subject: Call CGI Perl whithout Forms
Message-Id: <37FA1F9F.421C2B63@eii.fr>
I want to call a Cgi Perl whithout use a form.
And after i wan't my Perl return some HTML code is the current page of
the browser, i don't want create a new page.
Please Help.
The French GAETAN.
------------------------------
Date: Tue, 05 Oct 1999 18:34:15 +0200
From: A Zielke <azielke@hotmail.com>
Subject: Re: Call CGI Perl whithout Forms
Message-Id: <37FA2887.C760B61D@hotmail.com>
Hi,
> I want to call a Cgi Perl whithout use a form.
In this case you'll have to include links (i.e.
<A HREF="PathToYourScript">Execute Script!</A>)
If you're new to CGI you might want to read
http://hoohoo.ncsa.uiuc.edu/cgi/overview.html .
> And after i wan't my Perl return some HTML code is the current page of
> the browser, i don't want create a new page.
This can be done by sending a redirect (i.e. let your script
end with:
my $Url = "http://this.is.your/old/page/foo/bar/something.html";
print "Location: http://$Url\n";
print "URI: http://$Url\n\n";
If I wasn't specific enough on some point, don't hesitate to ask again.
Andreas
------------------------------
Date: Tue, 05 Oct 1999 16:14:03 GMT
From: scott@aravis.softbase.com (Scott McMahan)
Subject: Re: Conversion ASCII flat file into Excel spreadsheet file
Message-Id: <ftpK3.1175$H32.71815@newshog.newsread.com>
Vorname Name (Vorname.Name@pcm.bosch.de) wrote:
> I am convinced that there already exist loads of
> file format conversion scripts that can do the job.
> Has anyone a hint?
This is rapidly becoming the most frequently asked
Perl question on the Internet.
Basically, you can't do it, and use CSV files instead :)
Scott
------------------------------
Date: Tue, 05 Oct 1999 16:24:59 GMT
From: david@connmed.co.nospam.uk (David Salgado)
Subject: Re: DBI/CGI Problem (cmd line works, but webserver fails to connect)
Message-Id: <37fa24f4.29901946@news.demon.co.uk>
Yeah, I think I'll just upgrade the damn thing to SQL Server and
hopefully that'll sort out the whole problem.
Cheers
David
------------------------------
Date: Tue, 05 Oct 1999 15:17:01 GMT
From: jdporter@min.net (John Porter)
Subject: Re: HTML to ASCII
Message-Id: <slrn7vk5jd.sh9.jdporter@min.net>
In article <slrn7vagi4.8gm.dha@panix.com>, David H. Adler wrote:
>
>Nah. And I think the Daleks were probably coded in Fortran...
>
>:_)
You think? I'm guessing Logo.
--
John Porter
------------------------------
Date: 5 Oct 1999 16:23:09 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: HTML to ASCII
Message-Id: <37fa17dd_1@newsread3.dircon.co.uk>
In comp.lang.perl.misc John Porter <jdporter@min.net> wrote:
> In article <slrn7vagi4.8gm.dha@panix.com>, David H. Adler wrote:
>>
>>Nah. And I think the Daleks were probably coded in Fortran...
>>
>>:_)
>
> You think? I'm guessing Logo.
>
That would explain why they couldnt go up stairs ;-}
/J\
--
"The teenage masturbators of today are the television executives of
tomorrow" - Melissa Cabriolet, Drop the Dead Donkey
------------------------------
Date: Tue, 05 Oct 1999 17:21:49 +0200
From: Alex Rhomberg <rhomberg@ife.ee.ethz.ch>
Subject: Re: Interpret variable and its name?
Message-Id: <37FA178D.817C9910@ife.ee.ethz.ch>
jboes@my-deja.com wrote:
> That is, I want to be able to pass in a variable, or its name as in
>
> logVar('a');
>
> if I have to do it that way, and have a 'debugger' style output of the
> variable name and contents.
>
> (Yes, I know I can do this with something like
>
> print '$a: ' . "'$a'";
>
> but where's the challenge in that?)
>
> The trick: this should work the same regardless of the local-ness or my-
> ness of the variable.
it is not possible, you cannot access a 'my' variable inside a sub
#!/usr/bin/perl
sub x { $_=shift; print "\$$_ = ${$_}\n"}
$a = "hallo"; {my $a="peter"; x 'a'; print "\$a = $a\n"}
=cut
$a = hallo
$a = peter
for non-my variables, possible names can be found with a reference by
searching all symbol tables, but what for?
use Data::Dumper;
print "\$a is ". Dumper($a);
- Alex
------------------------------
Date: Tue, 05 Oct 1999 16:47:04 GMT
From: rob1234567@my-deja.com
Subject: Memory leak in assignment
Message-Id: <7tda22$6g0$1@nnrp1.deja.com>
I have a problem with a perl program that fails
with out-of-memory. At the end of this message a
small script is attached that has this same
problem. Wether or not the 'undef' line is
commented out, in both cases the script fails.
I have checked the FAQ, but could find only one
entry on memory leaks and that was supposedly
fixed in 5.0.
Does anyone have a fix or a workaround for me?
Thanks in advance,
Rob
rob.perl@kosa.xs4all.nl
## start of perl script
$a = 0;
for (1 .. 10000000)
{
#undef $a;
$a = 1;
}
## end of perl script
Perl version on HPUX10.20:
Summary of my perl5 (5.0 patchlevel 4 subversion
1)
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Tue, 05 Oct 1999 12:28:05 -0400
From: Elaine -HFB- Ashton <elaine@chaos.wustl.edu>
Subject: Re: Need help with using "format" for String
Message-Id: <37FA2665.F8EA0097@chaos.wustl.edu>
pejman@pejman.com wrote:
> Now I need to do exactly the same, but instead of writing
> the result into stdout, I want to have it as a $string.
perldoc -f sprintf
e.
------------------------------
Date: Tue, 05 Oct 1999 15:27:10 GMT
From: "Samuel Kilchenmann" <skilchen@swissonline.ch>
Subject: Re: Newbie: Combining split and shift on One Statement
Message-Id: <iNoK3.22118$m4.82464180@news.magma.ca>
I.J. Garlick wrote ...
>In article <mfleming-0410991155460001@cserv51.csubak.edu>,
>mfleming@csub.edu (Michael W. Fleming) writes:
>> I have the following situation:
>>
>> $x = " abc xxx";
>> @stuff = split(/\s+/,$x);
>> shift(@stuff);
>>
>> How might I accomplish this?
>
>Simple answer you don't.
>
Because shift is an inplace modifier of arrays and what split returns is a
immutable list value?
But why is it not possible to get all but the first element from a list
value? Something like the "cdr", "butfirst", "next" functions, or the [1:]
idexing notation available in some other languages.
------------------------------
Date: Tue, 5 Oct 1999 09:03:28 -0700
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: Newbie: Combining split and shift on One Statement
Message-Id: <MPG.1263c12ac800c55598a038@nntp.hpl.hp.com>
In article <iNoK3.22118$m4.82464180@news.magma.ca> on Tue, 05 Oct 1999
15:27:10 GMT, Samuel Kilchenmann <skilchen@swissonline.ch> says...
> I.J. Garlick wrote ...
> >In article <mfleming-0410991155460001@cserv51.csubak.edu>,
> >mfleming@csub.edu (Michael W. Fleming) writes:
> >> I have the following situation:
> >>
> >> $x = " abc xxx";
> >> @stuff = split(/\s+/,$x);
> >> shift(@stuff);
> >>
> >> How might I accomplish this?
> >
> >Simple answer you don't.
> >
> Because shift is an inplace modifier of arrays and what split returns is a
> immutable list value?
Isn't the real issue why it is still a list value and not an array value
after assignment to an array:
shift(@array = split)
Why does this not simply shift @array? Is this a DWIM failure?
--
(Just Another Larry) Rosler
Hewlett-Packard Laboratories
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com
------------------------------
Date: Tue, 5 Oct 1999 10:00:33 -0700
From: James Nessen <nessenj@jimsoffice.org>
Subject: Re: pattern matching question
Message-Id: <Pine.LNX.4.10.9910050956580.23227-100000@ns0.jimsoffice.org>
Mike,
Thanks for the response. Unfortunately, your email address doesn't seem
to be working, so that's why I am posting here. :-)
Anyways, that seemed to work, but I've got another question for you. Some
of our users here have a filter-id on the next line under their username,
how would I modify this to also delete the filter-id line if it exists.
Thanks again for the assistance, I really appreciate it!
Jim
--
James Nessen
E. nessenj@jimsoffice.org
P. 916.296.5454
F. 916.313.3481
W. http://www.jimsoffice.org
On 5 Oct 1999, M.J.T. Guy wrote:
> In article <Pine.LNX.4.10.9910041629250.19541-100000@ns0.jimsoffice.org>,
> James Nessen <nessenj@jimsoffice.org> wrote:
> >
> > if ($in =~ /^P$u/){$userfound=0}
>
> In addition to using \b as others have replied, also consider using \Q
> if there is any possibility of unusual characters in $u:
>
> if ($in =~ /^P\Q$u\E\b/){$userfound=0}
>
>
> Mike Guy
>
>
------------------------------
Date: Tue, 5 Oct 1999 16:59:26 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: PERL CGI script works in concole but not with IIS or Apache
Message-Id: <Pine.HPP.3.95a.991005164827.29427C-100000@hpplus01.cern.ch>
On Tue, 5 Oct 1999, Bill Moseley wrote:
> This was also posted in comp.infosystems.www.authoring.cgi
>
> Please use your newsreaders cross-posting feature.
In general that should be good advice, although of course _only_ in
situations where a posting really belongs on more than one group. Unlike
this one, which doesn't belong on EITHER of these groups, because it's
answered by BOTH of their FAQs.
But c.i.w.authoring.cgi is automoderated, and prohibits crossposting,
precisely because postings that belong there should not be posted to
irrelevant groups like, for instance, clpm. All properly behaved
posters to ciwac get an email explaining this to them before their first
posting is actioned. I wonder whether any of them read it?
------------------------------
Date: Tue, 5 Oct 1999 08:56:00 -0700
From: moseley@best.com (Bill Moseley)
Subject: Re: PERL CGI script works in concole but not with IIS or Apache
Message-Id: <MPG.1263bf6eecaa0a329897d2@206.184.139.132>
Alan J. Flavell (flavell@mail.cern.ch) seems to say...
> On Tue, 5 Oct 1999, Bill Moseley wrote:
> > Please use your newsreaders cross-posting feature.
>
> In general that should be good advice, although of course _only_ in
> situations where a posting really belongs on more than one group. Unlike
> this one, which doesn't belong on EITHER of these groups, because it's
> answered by BOTH of their FAQs.
Actually, if you looked at the perl in the posting you might think it
should have just been posted here in c.l.p.m ;)
> But c.i.w.authoring.cgi is automoderated, and prohibits crossposting,
Oh, I thought I'd seen crossposted articles. Maybe that's why people
complain that their messages don't make it in???
> precisely because postings that belong there should not be posted to
> irrelevant groups like, for instance, clpm. All properly behaved
> posters to ciwac get an email explaining this to them before their first
> posting is actioned. I wonder whether any of them read it?
Why doesn't that email hide some token in the faq and say "Find the
magic key to gain access...." -- Why that could work here in c.l.p.m.
Send the entire perlfaq by email with bits of the 'key' hidden through
out the faq. What fun.
--
Bill Moseley mailto:moseley@best.com
pls note the one line sig, not counting this one.
------------------------------
Date: Tue, 05 Oct 1999 17:23:59 +0200
From: A Zielke <azielke@hotmail.com>
Subject: Regexp/Interpolation question
Message-Id: <37FA180F.42B37AAA@hotmail.com>
Hi all,
I've go a variable containing stuff like brackets, *s, ?s, etc.
(i.e. something like $Expr = '(5+7)*[(9-2)*5-12]'; )
I would now like to do a "substring-compare":
my $Expr = '(5+7)*[(9-2)*5-12]';
my $HugeExpr = 'something stupid (5+7)*[(9-2)*5-12] bla bla';
if ( $HugeExpr =~ /'$Expr'/ ) {
print "o.k.\n";
} else {
print "no luck\n";
}
I guess you get what I mean to do; Perl doesn't. Do I have to substitute
all brackets and stuff in $Expr with quoted brackets and stuff or is
there an easier way?
Thanks for all suggestions,
Andreas
------------------------------
Date: Tue, 05 Oct 1999 18:26:43 +0200
From: Alex Rhomberg <rhomberg@ife.ee.ethz.ch>
Subject: Re: Regexp/Interpolation question
Message-Id: <37FA26C3.2326F6B6@ife.ee.ethz.ch>
A Zielke wrote:
>
> Hi all,
>
> I've go a variable containing stuff like brackets, *s, ?s, etc.
> (i.e. something like $Expr = '(5+7)*[(9-2)*5-12]'; )
> I would now like to do a "substring-compare":
>
> my $Expr = '(5+7)*[(9-2)*5-12]';
> my $HugeExpr = 'something stupid (5+7)*[(9-2)*5-12] bla bla';
>
> if ( $HugeExpr =~ /'$Expr'/ ) {
> print "o.k.\n";
> } else {
> print "no luck\n";
> }
>
> I guess you get what I mean to do; Perl doesn't. Do I have to substitute
> all brackets and stuff in $Expr with quoted brackets and stuff or is
> there an easier way?
Wow, this question is so rare, it comes up at most once a day!
that's probably why it's found in the faq
perldoc -q quote
use \Q or quotemeta
- Alex
------------------------------
Date: Tue, 05 Oct 1999 16:58:00 GMT
From: Scratchie <AgitatorsBand@yahoo.com>
Subject: Re: Simple - yet won't work!
Message-Id: <s6qK3.65$Q11.11075@news.shore.net>
nihad@yahoo.com wrote:
: Thanks for all the responses, Here's what seems to work:
: if (-e $pagepath){
: open(INF, "+<$pagepath");
You're still not checking for success on your "open"s and "flock"s.
Also, because of the "if (-e $pagepath)", you now have a race condition if
the file doesn't exist.
Depending on your needs, you may be able to get away with opening the file
as 'open (INF, "+>>$pagepath")' -- this is "read/append" mode which will
create the file if it doesn't exist already. I believe the only downside
to this approach is that you can only write to the end of the file in
question, meaning that you'll have to truncate it (perldoc -f trunc) after
reading it if you want to write to the beginning.
--Art
--
--------------------------------------------------------------------------
National Ska & Reggae Calendar
http://www.agitators.com/calendar/
--------------------------------------------------------------------------
------------------------------
Date: Tue, 05 Oct 1999 17:00:04 GMT
From: <nihad@yahoo.com>
Subject: Re: Simple - yet won't work!
Message-Id: <rvkbkk7brad59@corp.supernews.com>
Randal,
Why is unlocking the file dangerous?
Thanks
Randal L. Schwartz wrote:
>
>
> >>>>> "Anon" == <nihad@yahoo.com> writes:
>
> Anon> flock(INF, 8);
>
> That line is pointless where it is, and dangerous if moved.
> Delete it. And distrust any place that you got it from.
>
> --
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777
0095
> <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
> See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl
training!
------------------ Posted via CNET Help.com ------------------
http://www.help.com/
------------------------------
Date: Tue, 05 Oct 1999 16:20:42 GMT
From: scott@aravis.softbase.com (Scott McMahan)
Subject: Re: Specifying start row for DB access
Message-Id: <uzpK3.1176$H32.71815@newshog.newsread.com>
pyammine@my-deja.com wrote:
> I was wondering if anybody knew if it is possible with DBI::ODBC and/or
> WIN32::ODBC to specify what row/record to start fetching from in a
> database. Meaning, If I execute a SQL statement and than want to put
> the records into arrays, can I say I only want it to start at the 10th
> record and end at the 20th?
Unless you can do a SELECT on the row sequence number on the table,
you will probably need a cursor to do this. Some databases have a field
for each table that generates a unique sequence number for each row,
which I think is accessible to the user for reading but not modifying
in some databases.
Relational databases are *NOT* designed to do this, however, and I have
to wonder about the design of a solution that uses this particular type
of record selection. Rows are not kept "in order" in a relational
database.
Scott
------------------------------
Date: Tue, 05 Oct 1999 16:23:51 GMT
From: scott@aravis.softbase.com (Scott McMahan)
Subject: Re: Split() on vertical bar |
Message-Id: <rCpK3.1177$H32.71815@newshog.newsread.com>
Bill Feduska (feduskabm@msx.upmc.edu) wrote:
> Any ideas on how to split() a line on a vertical bar (hash mark) | ?
You have to backwhack it in a regular expression, because
| itself is a regular expression character. If you don't,
Perl will be trying to match two empty regular expressions :)
/\|/
Scott
------------------------------
Date: Sun, 03 Oct 1999 18:40:45 +0300
From: jaamaylem@usa.net
Subject: submitting data
Message-Id: <37F778FD.A0CCCB5E@usa.net>
Hi!
I am newbie and have one question.
How can I submit data to perl script in that way:
http://www.myserver.com/dir/new.pl?name=andrew
------------------------------
Date: Tue, 5 Oct 1999 09:51:13 -0700
From: moseley@best.com (Bill Moseley)
Subject: Re: submitting data
Message-Id: <MPG.1263cc5a76ca2c899897d4@206.184.139.132>
jaamaylem@usa.net (jaamaylem@usa.net) seems to say...
> How can I submit data to perl script in that way:
>
> http://www.myserver.com/dir/new.pl?name=andrew
Use CGI.
Usenet is not the place to start. Search the web for CGI tutorials and
FAQs.
And look at:
perldoc CGI
And, please read the FAQs.
--
Bill Moseley mailto:moseley@best.com
pls note the one line sig, not counting this one.
------------------------------
Date: Tue, 5 Oct 1999 08:33:01 -0700
From: "Colin Reinhardt" <colinrei@oz.net>
Subject: tool to convert BMPs to GIFs programatically?
Message-Id: <rvk62rh1rad28@corp.supernews.com>
I want to convert some BMPs to GIFs using code, without any user
interaction.
Is there a utility that is scriptable, or batchable, or supports automation
to do this?
Ideally it would be freeware and re-distributable...
Thank you,
- Colin Reinhardt
------------------------------
Date: 05 Oct 1999 10:50:42 -0500
From: mah@everybody.org (Mark A. Hershberger)
Subject: Re: tool to convert BMPs to GIFs programatically?
Message-Id: <49so3pvmb1.fsf@playpen.baileylink.net>
"Colin Reinhardt" <colinrei@oz.net> writes:
> I want to convert some BMPs to GIFs using code, without any user
> interaction.
Check out Image::Magick. You will need to install ImageMagick to use
it, though. ImageMagick can be found at
http://www.wizards.dupont.com/cristy/ImageMagick.
followups set.
Mark.
--
------------------------------
Date: Tue, 5 Oct 1999 18:02:39 +0200
From: "Trond Michelsen" <mike@crusaders.no>
Subject: Re: tool to convert BMPs to GIFs programatically?
Message-Id: <%ipK3.349$EM4.5332@news1.online.no>
Colin Reinhardt <colinrei@oz.net> wrote in message
news:rvk62rh1rad28@corp.supernews.com...
> I want to convert some BMPs to GIFs using code, without any user
> interaction.
> Is there a utility that is scriptable, or batchable, or supports
automation
> to do this?
> Ideally it would be freeware and re-distributable...
Unfortunately, this is not possible since Unisys enforces a strict
licensing-policy on their GIF-patent.
--
Trond Michelsen
------------------------------
Date: Tue, 05 Oct 1999 16:25:08 GMT
From: scott@aravis.softbase.com (Scott McMahan)
Subject: Re: tool to convert BMPs to GIFs programatically?
Message-Id: <EDpK3.1178$H32.71815@newshog.newsread.com>
Colin Reinhardt (colinrei@oz.net) wrote:
> I want to convert some BMPs to GIFs using code, without any user
^^^
> Ideally it would be freeware and re-distributable...
But GIFs are patent-protected, or something, and require a license
from whoever has the legal rights to them, aren't they? Can you
make freeware that supports GIFs without having to pay
for the rights to them?
Scott
------------------------------
Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 16 Sep 99)
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.
| NOTE: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.
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 V9 Issue 991
*************************************