[13326] in Perl-Users-Digest
Perl-Users Digest, Issue: 736 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Sep 8 00:07:33 1999
Date: Tue, 7 Sep 1999 21:05:09 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Tue, 7 Sep 1999 Volume: 9 Number: 736
Today's topics:
Bidirectional client <new_conclusions@bigfoot.com>
Re: case for open lang on win32 - fill in the table (Arved Sandstrom)
Re: case for open lang on win32 - fill in the table <erlangen72@hotmail.com>
Checking type input <info@counter.w-dt.com>
Re: Checking type input (Abigail)
converting decimal into fraction? <zhuang@ic.sunysb.edu>
Re: Find MAC address (Richard Warkentin)
Frames using perl <nallurichanduNOokSPAM@hotmail.com>
Frames using perl <nallurichanduNOrkSPAM@hotmail.com>
LWP: How do I retrieve a page that requires login + pas <edd@rosebud.sps.queensu.ca>
Perl & mysql <info@counter.w-dt.com>
Re: setrlimit functionality? <eric-usenet-1999-09-07@eisenhart.com>
STL and embedded perl conflict <j.beard@citr.com.au>
Re: very simple question. (Mike Stok)
Re: very simple question. (elephant)
Re: very simple question. (Abigail)
Re: very simple question. (Abigail)
Re: XML::Parser help needed (Arved Sandstrom)
Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 07 Sep 1999 16:17:06 -1000
From: Govind Shridhare <new_conclusions@bigfoot.com>
Subject: Bidirectional client
Message-Id: <37D5C722.74889330@bigfoot.com>
This is a multi-part message in MIME format.
--------------CD796F8D81D853B8828846C9
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi Folks
I was wondering if somebody can show me how you can write a
bidirectional client using select statements in Perl. I am using Perl
5.005_03 on a Linux box.
I know how to do it using fork statements...
Many thanks in advance.
Richard
--------------CD796F8D81D853B8828846C9
Content-Type: text/x-vcard; charset=us-ascii;
name="new_conclusions.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Govind Shridhare
Content-Disposition: attachment;
filename="new_conclusions.vcf"
begin:vcard
n:Shridhare;Govind
x-mozilla-html:FALSE
org:MediaBreeze
adr:;;;;;;
version:2.1
email;internet:Govind@MediaBreeze.com
note;quoted-printable:If you are not living on the edge, you are taking up too much space!=0D=0ASri Sri Ravi Shankar
x-mozilla-cpt:;25920
fn:Govind Shridhare
end:vcard
--------------CD796F8D81D853B8828846C9--
------------------------------
Date: Tue, 07 Sep 1999 23:27:54 -0300
From: Arved_37@chebucto.ns.ca (Arved Sandstrom)
Subject: Re: case for open lang on win32 - fill in the table
Message-Id: <Arved_37-0709992327540001@dyip-11.chebucto.ns.ca>
In article <7r3cjb$i4e$1@oak.prod.itd.earthlink.net>, "Jason W. Kohlhoff"
<jwk6@earthlink.net> wrote:
> I just want you schmucks to put up or shut up for a change.
I'll tell you what, my man. So far I've been doing my XML processing with
Java and Perl. On Windows, MacOS and Linux - same libraries, same
scripts/programs. I'm easy - just email or post your XML VBScript or WSH
code, and I'll give that a whirl on all three platforms.
Arved
------------------------------
Date: Tue, 7 Sep 1999 19:50:06 -0700
From: "LiL Endian" <erlangen72@hotmail.com>
Subject: Re: case for open lang on win32 - fill in the table
Message-Id: <7r4iq5$8jp$1@holly.prod.itd.earthlink.net>
This is a multi-part message in MIME format.
------=_NextPart_000_002A_01BEF96A.2F62B440
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
This is a table. I made some minor changes under VBScript.
Regards,
LiL Endian
Features\Language VBScript Perl Python=20
open no yes yes=20
cross/platform no yes yes=20
ease_of_use easy medium easy=20
object/orient weak good good=20
multi-thread none recent-ok ?=20
file_system_access text only yes yes=20
basic/locking no(obviously) flock flock?=20
speed ? excellent ok?=20
open_c++_access no swig swig=20
win32_access no almost full almost full=20
database_access ADO ADO,odbc,dbi ADO,odbc,?=20
raw_lang_power weak excellent excellent=20
exception_handeling ? ok(eval) ?=20
adsi good ok ?=20
MTS_support ok ? good=20
COM_ease easy medium easy=20
make_COM_component WSC scriptlets yes yes=20
COM_debugging ? ? yes=20
idispatch_only yes ? ?=20
COM_threading_STA only_STA only? STA_only?=20
project_size small_to_medium big big=20
=20
nielsenjf@my-deja.com wrote in message <7r0049$bfh$1@nnrp1.deja.com>...
>In situations where windows is the chosen path, here is a table I
>made regarding vbscript(closed) and perl or python (open).
>
>I am specifically looking at scripting languages in a web environ.
>Though if you include complied languages (visual basic, java, c++
>i doubt the situation is any different -- btw I know the definitions
>of scripting versus compiled are fuzzy).
>
>It looks like open languages are a winner . . .
>(some items in the table are there for buzzword reasons)
>
>If you can think of anything to add, please do so
>
> vbscript perl python
>open no yes yes
>cross platform no yes yes
>ease of use easy medium easy
>object orient weak good good
>multi thread none recent-ok ?
>file system access no yes yes
>basic locking no (obviously) flock flock?
>speed ? excellent ok?
>open c++ access no swig swig
>win32 access no almost full almost full
>database access ADO ADO,odbc,dbi ADO,odbc,?
>raw lang power weak excellent excellent
>exception handeling ? ok(eval) ?
>adsi good ok ?
>MTS support ok ? good
>COM ease easy medium easy
>make COM component no yes yes
>COM debugging ? ? yes
>idispatch only yes ? ?
>COM threading STA only STA only? STA only?
>project size small to medium big big
>(lines of code)
>
>Here's also a short comment on database access:
>
> languages speed open cross plat Ease of use
>ADO perl/python/vb slow no no easy
>dbi perl fast yes yes easy
>odbc perl/python fast yes yes harder
>
>Perhaps the only reason you want to use vbscript is if you
>want really easy (though limited) COM access and ADO access, so much
>so, that it is important to give up other benefits.
>
>Another interesting thing to note, if you leverage perl and python the
>operating system and database do not matter. You can expand your
>development beyond one OS. In other words, even if you are only doing
>windows stuff, in the future that may not be the case. And if so, the
>python/perl guys are in much better shape.
>
>Any comments, inaccuracies?
>
>john
>
>
>Sent via Deja.com http://www.deja.com/
>Share what you know. Learn what you don't.
------=_NextPart_000_002A_01BEF96A.2F62B440
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3612.1706"' name=3DGENERATOR>
</HEAD>
<BODY>
<DIV><FONT color=3D#000000 size=3D2>Hi,</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2> This is a table. =
I made some=20
minor changes under VBScript.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2> =
Regards,</FONT></DIV>
<DIV><FONT color=3D#000000=20
size=3D2> &nbs=
p; LiL=20
Endian</FONT></DIV>
<DIV> </DIV>
<DIV>
<DIV align=3Dleft>
<TABLE border=3D1 width=3D90%>
<TBODY>
<TR>
<TD>Features\Language</TD>
<TD><FONT size=3D5><STRONG>VBScript</STRONG></FONT></TD>
<TD><FONT size=3D5><STRONG>Perl</STRONG></FONT></TD>
<TD><FONT size=3D5><STRONG>Python</STRONG></FONT></TD></TR>
<TR>
<TD><STRONG>open</STRONG></TD>
<TD bgColor=3D#c0c0c0>no</TD>
<TD bgColor=3D#c0c0c0>yes</TD>
<TD bgColor=3D#c0c0c0>yes</TD></TR>
<TR>
<TD><STRONG>cross/platform</STRONG></TD>
<TD bgColor=3D#c0c0c0>no</TD>
<TD bgColor=3D#c0c0c0>yes</TD>
<TD bgColor=3D#c0c0c0>yes</TD></TR>
<TR>
<TD><STRONG>ease_of_use</STRONG></TD>
<TD bgColor=3D#c0c0c0>easy</TD>
<TD bgColor=3D#c0c0c0>medium</TD>
<TD bgColor=3D#c0c0c0>easy</TD></TR>
<TR>
<TD><STRONG>object/orient</STRONG></TD>
<TD bgColor=3D#c0c0c0>weak</TD>
<TD bgColor=3D#c0c0c0>good</TD>
<TD bgColor=3D#c0c0c0>good</TD></TR>
<TR>
<TD><STRONG>multi-thread</STRONG></TD>
<TD bgColor=3D#c0c0c0>none</TD>
<TD bgColor=3D#c0c0c0>recent-ok</TD>
<TD bgColor=3D#c0c0c0>?</TD></TR>
<TR>
<TD><STRONG>file_system_access</STRONG></TD>
<TD bgColor=3D#c0c0c0>text only</TD>
<TD bgColor=3D#c0c0c0>yes</TD>
<TD bgColor=3D#c0c0c0>yes</TD></TR>
<TR>
<TD><STRONG>basic/locking</STRONG></TD>
<TD bgColor=3D#c0c0c0>no(obviously)</TD>
<TD bgColor=3D#c0c0c0>flock</TD>
<TD bgColor=3D#c0c0c0>flock?</TD></TR>
<TR>
<TD><STRONG>speed</STRONG></TD>
<TD bgColor=3D#c0c0c0>?</TD>
<TD bgColor=3D#c0c0c0>excellent</TD>
<TD bgColor=3D#c0c0c0>ok?</TD></TR>
<TR>
<TD><STRONG>open_c++_access</STRONG></TD>
<TD bgColor=3D#c0c0c0>no</TD>
<TD bgColor=3D#c0c0c0>swig</TD>
<TD bgColor=3D#c0c0c0>swig</TD></TR>
<TR>
<TD><STRONG>win32_access</STRONG></TD>
<TD bgColor=3D#c0c0c0>no</TD>
<TD bgColor=3D#c0c0c0>almost full</TD>
<TD bgColor=3D#c0c0c0>almost full</TD></TR>
<TR>
<TD><STRONG>database_access</STRONG></TD>
<TD bgColor=3D#c0c0c0>ADO</TD>
<TD bgColor=3D#c0c0c0>ADO,odbc,dbi</TD>
<TD bgColor=3D#c0c0c0>ADO,odbc,?</TD></TR>
<TR>
<TD><STRONG>raw_lang_power</STRONG></TD>
<TD bgColor=3D#c0c0c0>weak</TD>
<TD bgColor=3D#c0c0c0>excellent</TD>
<TD bgColor=3D#c0c0c0>excellent</TD></TR>
<TR>
<TD><STRONG>exception_handeling</STRONG></TD>
<TD bgColor=3D#c0c0c0>?</TD>
<TD bgColor=3D#c0c0c0>ok(eval)</TD>
<TD bgColor=3D#c0c0c0>?</TD></TR>
<TR>
<TD><STRONG>adsi</STRONG></TD>
<TD bgColor=3D#c0c0c0>good</TD>
<TD bgColor=3D#c0c0c0>ok</TD>
<TD bgColor=3D#c0c0c0>?</TD></TR>
<TR>
<TD><STRONG>MTS_support</STRONG></TD>
<TD bgColor=3D#c0c0c0>ok</TD>
<TD bgColor=3D#c0c0c0>?</TD>
<TD bgColor=3D#c0c0c0>good</TD></TR>
<TR>
<TD><STRONG>COM_ease</STRONG></TD>
<TD bgColor=3D#c0c0c0>easy</TD>
<TD bgColor=3D#c0c0c0>medium</TD>
<TD bgColor=3D#c0c0c0>easy</TD></TR>
<TR>
<TD><STRONG>make_COM_component</STRONG></TD>
<TD bgColor=3D#c0c0c0>WSC scriptlets</TD>
<TD bgColor=3D#c0c0c0>yes</TD>
<TD bgColor=3D#c0c0c0>yes</TD></TR>
<TR>
<TD><STRONG>COM_debugging</STRONG></TD>
<TD bgColor=3D#c0c0c0>?</TD>
<TD bgColor=3D#c0c0c0>?</TD>
<TD bgColor=3D#c0c0c0>yes</TD></TR>
<TR>
<TD><STRONG>idispatch_only</STRONG></TD>
<TD bgColor=3D#c0c0c0>yes</TD>
<TD bgColor=3D#c0c0c0>?</TD>
<TD bgColor=3D#c0c0c0>?</TD></TR>
<TR>
<TD><STRONG>COM_threading_STA</STRONG></TD>
<TD bgColor=3D#c0c0c0>only_STA</TD>
<TD bgColor=3D#c0c0c0>only?</TD>
<TD bgColor=3D#c0c0c0>STA_only?</TD></TR>
<TR>
<TD><STRONG>project_size</STRONG></TD>
<TD bgColor=3D#c0c0c0>small_to_medium</TD>
<TD bgColor=3D#c0c0c0>big</TD>
<TD bgColor=3D#c0c0c0>big</TD></TR></TBODY></TABLE></DIV></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><A=20
href=3D"mailto:nielsenjf@my-deja.com">nielsenjf@my-deja.com<NIELSENJF@MY-=
DEJA.COM></A>=20
wrote in message <<A=20
href=3D"mailto:7r0049$bfh$1@nnrp1.deja.com">7r0049$bfh$1@nnrp1.deja.com</=
A>>...</DIV>>In=20
situations where windows is the chosen path, here is a table =
I<BR>>made=20
regarding vbscript(closed) and perl or python (open).<BR>><BR>>I =
am=20
specifically looking at scripting languages in a web =
environ.<BR>>Though if=20
you include complied languages (visual basic, java, c++<BR>>i doubt =
the=20
situation is any different -- btw I know the definitions<BR>>of =
scripting=20
versus compiled are fuzzy).<BR>><BR>>It looks like open languages =
are a=20
winner . . .<BR>>(some items in the table are there for buzzword=20
reasons)<BR>><BR>>If you can think of anything to add, please do=20
so<BR>><BR>> &=
nbsp; =20
vbscript =20
perl =20
python<BR>>open &=
nbsp; =20
no  =
; =20
yes =
yes<BR>>cross=20
platform =20
no  =
; =20
yes =
yes<BR>>ease of=20
use =20
easy &nb=
sp; =20
medium easy<BR>>object=20
orient =20
weak &nb=
sp; =20
good good<BR>>multi=20
thread =20
none &nb=
sp; =20
recent-ok ?<BR>>file system access =20
no  =
; =20
yes =
yes<BR>>basic=20
locking no =
(obviously) =20
flock =20
flock?<BR>>speed =
=20
? =
=20
excellent ok?<BR>>open c++ =
access =20
no  =
; =20
swig swig<BR>>win32=20
access =20
no  =
; =20
almost full almost full<BR>>database =
access =20
ADO &nbs=
p; =20
ADO,odbc,dbi ADO,odbc,?<BR>>raw lang =
power =20
weak &nb=
sp; =20
excellent excellent<BR>>exception handeling=20
? =
=20
ok(eval) =20
?<BR>>adsi =
=20
good &nb=
sp; =20
ok =
?<BR>>MTS=20
support =20
ok  =
; =20
? =20
good<BR>>COM=20
ease =20
easy &nb=
sp; =20
medium easy<BR>>make COM =
component =20
no  =
; =20
yes yes<BR>>COM =
debugging =20
? =
=20
? =20
yes<BR>>idispatch only =20
yes &nbs=
p; =20
? =
?<BR>>COM=20
threading STA=20
only STA=20
only? STA only?<BR>>project=20
size small to =
medium =20
big =
big<BR>>(lines of=20
code)<BR>><BR>>Here's also a short comment on database=20
access:<BR>><BR>> =20
languages =20
speed open cross=20
plat Ease of use<BR>>ADO =20
perl/python/vb =20
slow =
no =20
no =20
easy<BR>>dbi =20
perl &nb=
sp; =20
fast =
yes =20
yes =20
easy<BR>>odbc =
perl/python =20
fast =
yes =20
yes =20
harder<BR>><BR>>Perhaps the only reason you want to use vbscript =
is if=20
you<BR>>want really easy (though limited) COM access and ADO access, =
so=20
much<BR>>so, that it is important to give up other=20
benefits.<BR>><BR>>Another interesting thing to note, if you =
leverage perl=20
and python the<BR>>operating system and database do not matter. You =
can=20
expand your<BR>>development beyond one OS. In other words, even if =
you are=20
only doing<BR>>windows stuff, in the future that may not be the case. =
And if=20
so, the<BR>>python/perl guys are in much better =
shape.<BR>><BR>>Any=20
comments, inaccuracies?<BR>><BR>>john<BR>><BR>><BR>>Sent =
via=20
Deja.com <A =
href=3D"http://www.deja.com/">http://www.deja.com/</A><BR>>Share=20
what you know. Learn what you don't.</BODY></HTML>
------=_NextPart_000_002A_01BEF96A.2F62B440--
------------------------------
Date: Tue, 07 Sep 1999 21:28:54 -0500
From: Mike <info@counter.w-dt.com>
Subject: Checking type input
Message-Id: <37D5C9E5.6ACBC720@counter.w-dt.com>
How do you check to make sure a variable only has numbers in it. I know
how to tell if it has number in it but how do you check to make sure it
doesn have any other characters in it like a , t , $, ^, etc. I am going
to write a program for mysql but that requires certain types so I need
to know how to verify the variables first before storing them in the
database. Also a character can be anything right like a, t , $, % etc
right?
------------------------------
Date: 7 Sep 1999 22:04:21 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Checking type input
Message-Id: <slrn7tbkmt.n2g.abigail@alexandra.delanet.com>
Mike (info@counter.w-dt.com) wrote on MMCXCIX September MCMXCIII in
<URL:news:37D5C9E5.6ACBC720@counter.w-dt.com>:
,, How do you check to make sure a variable only has numbers in it.
$var !~ /\D/
Abigail
--
sub _'_{$_'_=~s/$a/$_/}map{$$_=$Z++}Y,a..z,A..X;*{($_::_=sprintf+q=%X==>"$A$Y".
"$b$r$T$u")=~s~0~O~g;map+_::_,U=>T=>L=>$Z;$_::_}=*_;sub _{print+/.*::(.*)/s}
*_'_=*{chr($b*$e)};*__=*{chr(1<<$e)};
_::_(r(e(k(c(a(H(__(l(r(e(P(__(r(e(h(t(o(n(a(__(t(us(J())))))))))))))))))))))))
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Tue, 07 Sep 1999 22:58:47 -0400
From: "Z. Huang" <zhuang@ic.sunysb.edu>
Subject: converting decimal into fraction?
Message-Id: <37D5D0E7.D1498682@ic.sunysb.edu>
Anyone know how to convert a decimal into a fraction: 0.125->1/8?
Suppose the decimal under consideration are of the form x/y, with y<256.
------------------------------
Date: Wed, 08 Sep 1999 02:39:33 GMT
From: "rdw2 at mindspring dot com"@test.com (Richard Warkentin)
Subject: Re: Find MAC address
Message-Id: <37d5cb91.75760648@news.mindspring.com>
On Tue, 7 Sep 1999 20:11:42 +1000, "Pen and Ron Savage"
<rpsavage@ozemail.com.au> wrote:
>Or (tested code)...
>
>-----Start-----8<>-----
>#!perl -w
>#
># Name:
># nbtstat.pl.
>#
># Purpose:
># Get MAC address etc.
>
>use integer;
>use strict;
>
>my($computerName) = Win32::NodeName;
>my(@nbtstat) = `nbtstat -a $computerName`;
>@nbtstat = grep(/MAC Address/, @nbtstat);
>chomp(@nbtstat);
>print join("\n", @nbtstat);
>-----End-----8<>-----
>
Looks good, what is nbstat? I couldn't find any file named nbstat in
either my w95 installation or my NT 4.0 SP3 installation.
------------------------------
Date: Mon, 06 Sep 1999 23:48:24 +1700
From: chandu <nallurichanduNOokSPAM@hotmail.com>
Subject: Frames using perl
Message-Id: <05a4d7f6.d42d470e@usw-ex0102-013.remarq.com>
Hello friends,
I want to in corporate frames using perl.
i have an index page in which i divided into two frames i
want to give the src file as my perl files can i have like
this if yes please give me the details.
* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!
------------------------------
Date: Tue, 07 Sep 1999 20:16:37 +1700
From: chandu <nallurichanduNOrkSPAM@hotmail.com>
Subject: Frames using perl
Message-Id: <023a5bf4.427ca287@usw-ex0106-044.remarq.com>
Hello friends ,
I am planning to implement frames using perl.
I have an index.html page in which i want to incorporate the
perl files as the scource files is it possible to do this
please give me the details regarding this.
thanks
N.chandu
* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!
------------------------------
Date: 07 Sep 1999 23:06:43 -0400
From: Dirk Eddelbuettel <edd@rosebud.sps.queensu.ca>
Subject: LWP: How do I retrieve a page that requires login + passwd
Message-Id: <87btbep0e4.fsf@rosebud.sps.queensu.ca>
I'd like to write a simple script to retrieve day-end fund prices from a
service provided by the local newspaper. Upon registration, you can setup a
portfolio. Upon login, the current values are presented with returns etc. All
is well, but to manual with Netscape. Hence Perl for an automatic retrieval.
I had some luck with LWP and simpler data-gathering jobs. I have gone trough
the docs, tried examples, scratched my head. I'd appreciate clues, or else
examples.
Thanks, Dirk
--
According to the latest figures, 43% of all statistics are totally worthless.
------------------------------
Date: Tue, 07 Sep 1999 22:26:13 -0500
From: Mike <info@counter.w-dt.com>
Subject: Perl & mysql
Message-Id: <37D5D754.CF91AFAA@counter.w-dt.com>
How do you select a random result returned from a mysql request?
This retrieves the info returned from a query $sth->fetchrow_array;
But what I want to know is how in perl would you select if you had a
field named account and had a bunch of rows with that same account how
would you select a random row?
------------------------------
Date: 7 Sep 1999 18:33:21 -0800
From: Eric Eisenhart <eric-usenet-1999-09-07@eisenhart.com>
Subject: Re: setrlimit functionality?
Message-Id: <37d5bce1.0@news1.svn.net>
In article <7r3cs1$n3$1@nntp.Stanford.EDU>,
Rick Fadler <rick@netleaf.com> wrote:
-}I downloaded BSD-Resource from CPAN and the README in the package
-}indicated that core perl allows you to increase the maximum
-}number of files open from the default, but doesn't say how to do
-}it.
-}
-}I'd rather use core perl whenever possible.
-}
-}Any ideas/advice?
You should check out the "FileCache" module. In particular, look at the
code itself -- it's basically a way to pretend you have many filehandles
open without actually having to have so many filehandles open.
You might be able to use FileCache.pm directly, or change slightly what it's
doing for what you want to do -- or possibly adapt it along with using seek
and tell to save more state if you need to do something more sophisticated
than append.
--
Eric Eisenhart Freedom is slavery. http://eric.eisenhart.com/
^ ICQ#: 48217244 Ignorance is strength. eric-dot-sig@eisenhart.com
/e\ Perl&SQL Coder War is peace. IRC Nicks: Falsch Freiheit
--- -- George Orwell
------------------------------
Date: Wed, 08 Sep 1999 13:41:00 +1000
From: James Beard <j.beard@citr.com.au>
Subject: STL and embedded perl conflict
Message-Id: <37D5DACC.8B44E810@citr.com.au>
Hi all,
I'm having something of a problem embedding perl in a c++ program which
uses stl vectors. This compile time problem only seems to occur if I
try to change the vector in the code i.e. push_back, insert, etc.
This is indicative of the error message that I get...
"/opt/RogueWave/workspaces/SOLARIS25/SUNPRO42/8s/include/algorithm.cc",
line 2410: Error: next_permutation(BidirectionalIterator,
BidirectionalIterator, Compare), returning char, was previously declared
returning int.
I can remove either perl or stl, and the compilation works fine. This
method, next_permutation, is not one which I would expect to colide with
perl in any way.
Is anybody able to provide some insight into why this is happening?
Thanks
James
------------------------------
Date: Wed, 08 Sep 1999 02:10:04 GMT
From: mike@stok.co.uk (Mike Stok)
Subject: Re: very simple question.
Message-Id: <0AjB3.143$vm2.45106@typhoon2.austin.rr.com>
In article <37D5AB72.8FEFB7BF@ic.sunysb.edu>,
Z. Huang <zhuang@ic.sunysb.edu> wrote:
>
> Can anyone tell me how to continue in a new line? suppose I want to
>print as follows
> print "this is the first line\n"
> ."this is the second line\n"
>It doesn't go through. I guess something is missing at the end of the
>first line. Any hint is appreciated.
Without any extra context or error message from perl it's hard to tell
what's wrong. If there's a statement after your print then maybe you're
missing the semicolon to separate the statements.
Please post a more complete fragment of code and the error message.
If you haven't tried then you should - see what happens. Perl's error
messages are quite useful, and if you need help there's the diagnostics
pragma whicha can make the messages even more detailed.
In most recent installations of perl
perldoc diagnostics
should tell you about the diagnostics pragma.
Hope this helps,
Mike
--
mike@stok.co.uk | The "`Stok' disclaimers" apply.
http://www.stok.co.uk/~mike/ | PGP fingerprint FE 56 4D 7D 42 1A 4A 9C
| 65 F3 3F 1D 27 22 B7 41
stok@colltech.com | Collective Technologies (work)
------------------------------
Date: Wed, 8 Sep 1999 12:33:07 +1000
From: elephant@squirrelgroup.com (elephant)
Subject: Re: very simple question.
Message-Id: <MPG.12405bcdb3e3d34e989cb7@news-server>
Z. Huang writes ..
> Can anyone tell me how to continue in a new line? suppose I want to
>print as follows
> print "this is the first line\n"
> ."this is the second line\n"
>It doesn't go through. I guess something is missing at the end of the
>first line.
nope .. something is missing from the end of the second line
--
jason - elephant@squirrelgroup.com -
------------------------------
Date: 7 Sep 1999 22:07:56 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: very simple question.
Message-Id: <slrn7tbktl.n2g.abigail@alexandra.delanet.com>
Z. Huang (zhuang@ic.sunysb.edu) wrote on MMCXCIX September MCMXCIII in
<URL:news:37D5AB72.8FEFB7BF@ic.sunysb.edu>:
--
-- Can anyone tell me how to continue in a new line? suppose I want to
-- print as follows
-- print "this is the first line\n"
-- ."this is the second line\n"
That looks fine to me.
-- It doesn't go through.
``It doesn't go through'' Now, that's very helpful. There might be a
bug somewhere then.
-- I guess something is missing at the end of the
-- first line. Any hint is appreciated.
Why would you guess that?
Abigail
--
sub camel (^#87=i@J&&&#]u'^^s]#'#={123{#}7890t[0.9]9@+*`"'***}A&&&}n2o}00}t324i;
h[{e **###{r{+P={**{e^^^#'#i@{r'^=^{l+{#}H***i[0.9]&@a5`"':&^;&^,*&^$43##@@####;
c}^^^&&&k}&&&}#=e*****[]}'r####'`=437*{#};::'1[0.9]2@43`"'*#==[[.{{],,,1278@#@);
print+((($llama=prototype'camel')=~y|+{#}$=^*&[0-9]i@:;`"',.| |d)&&$llama."\n");
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: 7 Sep 1999 22:10:17 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: very simple question.
Message-Id: <slrn7tbl1t.n2g.abigail@alexandra.delanet.com>
Andy Molnar (anmolnar@videon.wave.ca) wrote on MMCXCIX September MCMXCIII
in <URL:news:37D5B342.403AA27C@videon.wave.ca>:
[ Original message disappeared due to Andy being a Jeopardist.
Bad Andy! Bad! Bad! Bad! ]
"" Try this:
""
"" print <<EOF;
"" this is the first line
"" this is the second line
"" EOF
And? Are you suggesting the code he gave was wrong?
"" Everthing between the EOF's is printed to the html file the way you see
"" it above. Any character normally used in a regular expression will be
"" printed literally on the html page with the exception of the scalar ($),
"" so you can still put variables inside as you would with quotes.
""
"" I've also seen this:
""
"" print qq~this is the first line
"" this is the second line
"" ~;
""
"" Does the same as EOF above. You can use any character instead of the
"" tilde, but since the tilde is hardly used in html, it's ideal.
What has HTML do it with any of this?
Abigail
--
%0=map{reverse+chop,$_}ABC,ACB,BAC,BCA,CAB,CBA;$_=shift().AC;1while+s/(\d+)((.)
(.))/($0=$1-1)?"$0$3$0{$2}1$2$0$0{$2}$4":"$3 => $4\n"/xeg;print#Towers of Hanoi
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Tue, 07 Sep 1999 23:30:45 -0300
From: Arved_37@chebucto.ns.ca (Arved Sandstrom)
Subject: Re: XML::Parser help needed
Message-Id: <Arved_37-0709992330450001@dyip-11.chebucto.ns.ca>
In article <7r2scm$1lqq$1@news2.vas-net.net>, "Chris Denman"
<chris@inta.net.uk> wrote:
> Thanks for that info, I had almost given up hope!
>
Now that you know that it's doable, and quite easy, you'll kick yourself
when you finally put it togther. :-)
Feel free to email almost working code if something is a hairpuller.
Arved
------------------------------
Date: 1 Jul 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 1 Jul 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.
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" from
almanac@ruby.oce.orst.edu. The real FAQ, as it appeared last in the
newsgroup, can be retrieved with the request "send perl-users FAQ" from
almanac@ruby.oce.orst.edu. 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" from
almanac@ruby.oce.orst.edu.
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 736
*************************************