[8792] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 2409 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Apr 24 07:07:37 1998

Date: Fri, 24 Apr 98 04:00:28 -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           Fri, 24 Apr 1998     Volume: 8 Number: 2409

Today's topics:
        ANNOUNCE: IndexMaker 6.6: an index.html maker from PDF, <pivari@geocities.com>
    Re: Date/time library <Tony.Curtis+usenet@vcpc.univie.ac.at>
    Re: Eat my dust - Perl running on Windows 95 (Martien Verbruggen)
    Re: Excel via cgi <peter###@uhu.com>
        fork and defunct process (Lutz Brunke)
    Re: fork and defunct process (Michael Fuhr)
    Re: Free http perl cgi windows95 practice platform <tony@cyberscape.net>
        New: Command Line Tool for Format Conversion <jean@square1.nl>
    Re: Packlist -- I'm gonna blow it away <newsgroups@reza.net>
    Re: PC-based editors for Perl? <zkessin@lhr-sys.dhl.com>
    Re: PC-based editors for Perl? <cnwetzel@linguistik.uni-erlangen.de>
    Re: Perl and IIS 4.0 (Martien Verbruggen)
        Perl executable version for x86 solaris 2.5 <q13698@shangserv.cig.mcel.mot.com>
    Re: Perl for NT (Bart Lateur)
    Re: PerlScript with PERL version 5.004??? <msergeant@ndirect.co.uk>
    Re: Random Number Generation PERL 5.0 <newsgroups@reza.net>
        Re Assigning page numbers to specific variables from an <wkolln@cia.com.au>
        removing spaces <soetensi@se.bel.alcatel.be>
    Re: removing spaces steven@DK.net
    Re: SendMail on NT <globnet@austriaone.at>
    Re: sendmail <newsgroups@reza.net>
    Re: split... roach@necrosis.com
    Re: split... (Craig Berry)
    Re: split... <qdtcall@esb.ericsson.se>
    Re: There *IS* a visual IDE for Perl! (Bart Lateur)
    Re: There *IS* a visual IDE for Perl! <qdtcall@esb.ericsson.se>
    Re: WebMail Server ? (Martien Verbruggen)
        Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)

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

Date: Fri, 24 Apr 1998 09:30:41 +0000
From: Fabrizio Pivari <pivari@geocities.com>
Subject: ANNOUNCE: IndexMaker 6.6: an index.html maker from PDF,HTML,VRML and other files
Message-Id: <35405BC1.102705BA@geocities.com>

Hi,

I'm glad to announce the version 6.6 of IndexMaker a perl script to make

an index.html file from PDF, HTML, VRML and other files.
At the moment, it uses the /Author field, the first /Title field and in
the /Subject field every matched PDF files, the <TITLE> </TITLE>
field and  the META
Description and Author fields in every matched HTML files the Info
node field in every matched VRML 1.0 files the WorldInfo node field
info and title in every matched VRML 2.0 files and the name of the file
in the others.

What's new with version 6.6
PROXY support
Example section in documentation

This is the URL where you can find the tool
http://www.geocities.com/CapeCanaveral/Lab/3469


--
Fabrizio Pivari
mailto:pivari@geocities.com
http://www.geocities.com/CapeCanaveral/Lab/3469/
Member of ANFACE Software
http://www.geocities.com/CapeCanaveral/Hangar/4794/





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

Date: 24 Apr 1998 09:44:56 +0200
From: Tony Curtis <Tony.Curtis+usenet@vcpc.univie.ac.at>
Subject: Re: Date/time library
Message-Id: <7xn2dbpssn.fsf@beavis.vcpc.univie.ac.at>

Re: Date/time library, dan <dan.albertsson@swipnet.se> said:

dan> -Is there a date/time library out there to more easily
dan> convert and handle date and time?

    perldoc Date::Manip
    perldoc Date::DateCalc

dan> -If not, or if it
dan> does not handle my specific problem, how do I find out
dan> which week number corresponds to the actual dates, for
dan> instance this day/date is during week 17 from the
dan> beginning of the year.

See also `strftime'

    perldoc POSIX

-- 
Tony Curtis, Systems Manager, VCPC,      | Tel +43 1 310 93 96 - 12; Fax - 13
Liechtensteinstrasse 22, A-1090 Wien, AT | http://www.vcpc.univie.ac.at/

"You see? You see? Your stupid minds! Stupid! Stupid!" ~ Eros, Plan9 fOS.


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

Date: 24 Apr 1998 05:36:23 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Eat my dust - Perl running on Windows 95
Message-Id: <6hp8cn$k6j$2@comdyn.comdyn.com.au>

In article <353F3CF1.7077923E@mindless.com>,
	Fain <mindmore@mindless.com> writes:
> Bart Lateur wrote:
> 
>> Fain wrote:
>>
>> >  Wow! you guys really know how to get off subject!
>>
>> What subject?
>>
>>         Bart.
> 
> The original subject was on how a guy got perl working on his 486. Now
> they are talking about porn. Change your USENET view to sort the
> messages by subject and read them all for this subject, you'll see.

What view?

Martien
-- 
Martien Verbruggen                      |
Webmaster www.tradingpost.com.au        | "In a world without fences,
Commercial Dynamics Pty. Ltd.           |  who needs Gates?"
NSW, Australia                          |


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

Date: Fri, 24 Apr 1998 00:33:18 -0400
From: Peter Tapolyai <peter###@uhu.com>
Subject: Re: Excel via cgi
Message-Id: <3540160E.76E1@uhu.com>

Jonathan Stowe wrote:
> 
> > Whilst, this might be somewhat of an "Anti-Answer" you might instead
> alter your approach to use Win32::OLE instead wherein you can use the
> reasonably well documented Excel methods for accessing the data in you
> spreadsheet (IE you can specify indicidual cells etc) rather than
> having this shrouded beneath the ODBC interface.  


Thanks for the thought, but I can't use OLE. OLE will start excel to do
object linking
and embedding. So if 10 people will use the cgi there would be 1- Excell
instance running on the server. Not a very good idea. That is why I need
ODBC.

Thanks anyway, but this question is still open. Why can't I retrieve
text values?
Even if I use $in{'F1'} hashes it does not work ! 
-- 

Remove ### from before replying

peter###@uhu.com
http://www.uhu.com/tinkershop/


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

Date: 24 Apr 1998 09:13:55 GMT
From: brunke@dkrz.de (Lutz Brunke)
Subject: fork and defunct process
Message-Id: <6hpl4j$d13$1@alster.dkrz.de>

I have writen a small program that does a fork. The parent sleeps
for 60 seconds the child for 30 seconds, then both processes exit.
After 30 seconds 'ps' shows that the child is <defunct>. Why is
the child process not terminating properly?

demo program:
if(fork()) {
	sleep 60;
	exit 0;
}
sleep 30;
exit 0;

ps after 45 seconds:
 me   680   679  0                   0:00 <defunct>
 me   679   443  0 10:41:51 pts/4    0:00 perl fork.pl

Thanks for any help,
Lutz

BTW: This is perl, version 5.004_04 built for sun4-solaris
--
// Lutz Brunke                   Deutsches Klimarechenzentrum GmbH
// Tel: +49 40 41173-329         - Abteilung Kommunikation -
// Fax: +49 40 41173-322         Bundesstr. 55
// WWW: www.dkrz.de/~k202046/    20146 Hamburg


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

Date: Fri, 24 Apr 1998 10:19:06 GMT
From: mfuhr@dimensional.com (Michael Fuhr)
Subject: Re: fork and defunct process
Message-Id: <6hpouo$k16@flatland.dimensional.com>

brunke@dkrz.de (Lutz Brunke) writes:

> I have writen a small program that does a fork. The parent sleeps
> for 60 seconds the child for 30 seconds, then both processes exit.
> After 30 seconds 'ps' shows that the child is <defunct>. Why is
> the child process not terminating properly?

You've got a zombie hanging around.  See the perlfaq8 manual page on
your system or at:

    http://language.perl.com/faq/

-- 
Michael Fuhr
http://www.dimensional.com/~mfuhr/


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

Date: Fri, 24 Apr 1998 09:45:50 +0100
From: "Tony Kenny" <tony@cyberscape.net>
Subject: Re: Free http perl cgi windows95 practice platform
Message-Id: <6hpjgq$l4p$1@svr-c-01.core.theplanet.net>

I used OMNI HTTPD (search altavista) and Activestates Perl for win32.

Just set these up and you're running.

I was gonna attach the zipped program on another post but I am not sure if
that is the 'done thing' or not.

Hope this helps,

~Tony



Mark Fynes wrote in message <6horuv$j1j@web3.tcd.ie>...
>Hi,
>
>Can anyone recommend a freeware setup for testing / learning perl web
>programming ( through cgi )
>on the windows95 platform?
>
>I've had not success with mod_perl and apache as it requires winNT4
>
>
>Any suggestions would be most appreciated
>regards
>Mark Fynes
>
>




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

Date: Fri, 24 Apr 1998 11:43:10 -0500
From: Jean Haney <jean@square1.nl>
Subject: New: Command Line Tool for Format Conversion
Message-Id: <3540C11E.35B5@square1.nl>

We've just released a new Command Line Tool for Windows
and UNIX as well as a DLL for Windows which allows you to batch
convert PostScript files into other editable vector
formats (WMF, MIF, CGM and WPG). It's a handy tool for 
developers and an end-user version is also available. 

With it, you can import PostScript into your application,
as well as add "export" or "save-as" options for WMF, WPG, 
CGM and MIF. You can also use it for volume conversion of
output into the vector graphic format you need. TGC/Developer
is full featured and includes more than 10 Intelligent
Filter Options for controlling the conversion process. 

See http://www.square1.nl for a free trial copy of
the end-user version.

jean haney
-- 
The Graphics Connection (tm)
Converts PostScript to WMF, MIF, CGM, HPGL, GIF, TIFF & more!

SQUARE ONE BV              tel:    int+ 31 20 673 11 02      
Willemsparkweg 52-1        fax:    int+ 31 20 675 78 44
1071 HJ AMSTERDAM          email:  jean@square1.nl
The Netherlands            www:    http://www.square1.nl

-- 
The Graphics Connection (tm)
Converts PostScript to WMF, MIF, CGM, HPGL, GIF, TIFF & more!

SQUARE ONE BV              tel:    int+ 31 20 673 11 02      
Willemsparkweg 52-1        fax:    int+ 31 20 675 78 44
1071 HJ AMSTERDAM          email:  jean@square1.nl
The Netherlands            www:    http://www.square1.nl


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

Date: Fri, 24 Apr 1998 01:59:49 -0700
From: Reza Naima <newsgroups@reza.net>
Subject: Re: Packlist -- I'm gonna blow it away
Message-Id: <35405485.A0189EB5@reza.net>

John Porter wrote:
> 
> Anyone have any expert advice on whether I absolutely should not
> blow away the .packlist files?
> 
> Here's the sitch: we're gonna include the perl distribution in
> our software installation. We're using InstallShield to manage
> the installation (this is on NT).  InstallShield (I think)

In all honesty, does anything ever cleanly uninstall from any
windows box?  Feel free and overwrite any system files while
you're at it -- i believe that's expected from most windows
programs.

> balks at filenames that start with dot.  In the perl directory
> structure there's a number of files named .packlist, which are
> consulted when a package is uninstalled.  (They're create when
> a package is installed.)  (Ooh, that's "package" NOT in the
> perl keyword sense.)
> 
> So: can I safely say "forget the .packlist files", and expect
> that no one will try to uninstall any of those packages?
> How catastrophic is it, generally, to not be able to uninstall
> a package before installing a new version?
> 
> mille grazie,
> John Porter


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

Date: 24 Apr 1998 08:54:39 +0100
From: Zachary Kessin <zkessin@lhr-sys.dhl.com>
Subject: Re: PC-based editors for Perl?
Message-Id: <un2dbpscg.fsf@lhr-sys.dhl.com>


leeroth-nospamo@worldnet.att.net (Lee Roth) writes:

> Any suggestions for an editor on a PC that would be 'better suited' to
> writing Perl code than native editors such as Notepad, Wordpad or
> (uck) a word processing package ?

I swear by emacs. I use it for news, email, perl, java, and a lot of
other things too.

--Zach Kessin



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

Date: Fri, 24 Apr 1998 10:09:03 +0200
From: Christian Wetzel <cnwetzel@linguistik.uni-erlangen.de>
Subject: Re: PC-based editors for Perl?
Message-Id: <3540489E.496B@linguistik.uni-erlangen.de>

Lee Roth:
> 
> Any suggestions for an editor on a PC that would be 'better suited' to
> writing Perl code than native editors such as Notepad, Wordpad or
> (uck) a word processing package ?

emacs for dos, using the perl-mode.

Christian


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

Date: 24 Apr 1998 06:23:45 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Perl and IIS 4.0
Message-Id: <6hpb5h$kfo$1@comdyn.comdyn.com.au>

In article <6hjh8o$jip$1@aggedor.rmit.edu.au>,
	"Adrian Richardson" <adrianr@rmitpublishing.com.au> writes:
> Recently after upgrading from IIS3.0 to IIS4.0 our Perl scripts stopped
> working.  They now give errors like.....
> 
> "The specified CGI application misbehaved by not returning a complete set of
> HTTP headers. The headers it did return are:
> Can't open perl script "???????????????????l??gf???????": Invalid argument"
> 
> This usually means that you don't have  'Content-type' etc in your script.
> However, all of our scripts do and they run well under IIS3.0.
> 
> Does anyone know what we are missing here ?

A decent OS and web server? :)

Seriously: Even though they are perl scripts, this really has nothing
to do with perl. It rather seems to be a configuration issue for IIS.
You will probably have much more luck if you ask this in a group that
talks about web servers, or maybe even about IIS in particular.

Martien
-- 
Martien Verbruggen                      |
Webmaster www.tradingpost.com.au        | "In a world without fences,
Commercial Dynamics Pty. Ltd.           |  who needs Gates?"
NSW, Australia                          |


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

Date: Fri, 24 Apr 1998 17:18:25 +0900
From: Henry Qiu <q13698@shangserv.cig.mcel.mot.com>
Subject: Perl executable version for x86 solaris 2.5
Message-Id: <35404AD0.3D2C68B6@shangserv.cig.mcel.mot.com>

Hi, perl buddys

Does any one out there know where can I download
the Perl executable version for x86 solaris 2.5 ?
Any input would be appreciated.

henry





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

Date: Fri, 24 Apr 1998 07:36:49 GMT
From: bart.mediamind@tornado.be (Bart Lateur)
Subject: Re: Perl for NT
Message-Id: <35483b65.4698339@news.tornado.be>

Bill 'Sneex' Jones wrote:

>I don't get it?!  Tom's prolly the NICEST person here!

Some people even proposed to name a niceness award after him: the Tom
Phoenix (you guessed it!) Award.

See a thread a few months back.

	Bart.


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

Date: Fri, 24 Apr 1998 09:06:52 +0100
From: Matt Sergeant <msergeant@ndirect.co.uk>
Subject: Re: PerlScript with PERL version 5.004???
Message-Id: <3540481C.D7287504@ndirect.co.uk>

PerlScript expects perl300.dll. The GS Port has a perl.dll. But don't
just go renaming the dll - the activestate port uses a C++ variant on
the perl interpreter so the two aren't compatible. I suggest either move
back to Activestate perl, or wait for 5.005 (real soon now!).

BTW: I think someone on the activestate mailing list suggested it was
possible to install both, but I'm not sure how feasible this is. You
might try asking there.

Matt.

Michael McCarthy wrote:
> 
> I have just installed the port of PERL version 5.004 built by Gurusamy
> Sarathy. Everything is working fine, but now I can't get ActiveState's
> PerlScript (Build 316) working with this version of PERL.
> 
> Is this an impossiblilty? When I go to install PerlScript, the install
> tells me it can't find the perl interpreter.... that's a crock, the
> interpreter is there, just not ActiveState's interpreter.
> 
> Any help or pointers would be greatly appreciated.
> 
> Mike
> 
> --
> Michael McCarthy
> Senior Programmer
> Frontier Media Group
> mmccarthy@fmgnet.com
> home: mccarthy@voicenet.com


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

Date: Fri, 24 Apr 1998 02:33:30 -0700
From: Reza Naima <newsgroups@reza.net>
To: John Blanco <johnnie@holly.colostate.edu>
Subject: Re: Random Number Generation PERL 5.0
Message-Id: <35405C6A.4C10B7DF@reza.net>

John Blanco wrote:
> 
> The Curz1 wrote:
> 
> > We are in dire need of generating a random number from 0 to
> > <EndOfFile> for use
> > on our website and opening day is scheduled for May 1st. We are
> > somewhat new to
> 

open IN,"filename";
@lines = <IN>;
close IN;

$line = $lines[int rand($#lines + 1)];

note, if you leave out the srand, it by default does a srand(time)...
there are some other simple routines to increase the randomness, but
for what you want, this should be sufficient.

Reza


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

Date: Fri, 24 Apr 1998 20:17:43 +1000
From: William Kolln <wkolln@cia.com.au>
Subject: Re Assigning page numbers to specific variables from an array in perl/html cgi
Message-Id: <354066C7.2EA6A07C@cia.com.au>

Hi, Am really stuck on this one....
The below script produces search results from a database.
I have successfully calculated the number of returns that are called
along with the number of pages they will be produced on.
Also with some grep .ing and push .ing have managed to obtain the itemid
numbers $itemid from the array that holds the return information.
This is then output in a foreach loop to print each instance of the
$itemid after bing split.

What I want it to do, is to replace each $itemid with page numbers
starting from range 1..$count where $count is the number of pages.

################

if ($type eq 'search') {
	my($matches) = 0;
	my($i) = $pos;
	while (($matches < $numtolist) && ($i < $SIZE)) {
		$_=$LINES[$i];
		if (index(lc $LINES[$i],lc $FORM{'search'}) >= 0) { 
			$matches++;
			($itemid, $name, $price, $descrip, $image, $weight, $itemurl,
$group)=split(/\|/,$_);
			&print_item;
			}
		$i++;
		}
	print "</table>\n";
###################
# that's the end of the results production for each $FORM{'search'}
# The next part is to produce the page numbers for each 
	$num = grep(/\b$FORM{'search'}\b/, @LINES) ;#produces the number of
@LINES
	@num = grep(/\b$FORM{'search'}\b/, @LINES); #produces the result of
@LINES
	$count = int(($num / $numtolist)+ '0.99'); #produces the number of
pages where $numtolist=30
	foreach $_(@num) {
	($itemid, $name, $price, $descrip, $image, $weight, $itemurl, $group) =
split(/\|/,$_);
	push @pagestart, $itemid;
	}
	if ($num > $numtolist) {
		$page = "pages";
		$these = "these";
		$count = "$count";
		$numbers = "numbers";
		$starts = "start";
		}
	else {
		$page = "page";
		$these = "this";
		$count = "only";
		$numbers = "number";
		$starts = "starts";
		}
	print "SEARCH STATISTICS<br>\n";
	print "The $count $page $starts on $these $numbers\: \n";
	print "<br>\n";
	$itembegin = (@pagestart[0]-1); #produces the first instance of the
$itemid in @pagestart
	print "<a
href=\"$cgiurl\?command=listitems\&pos=$itembegin\&type=search\&search=$FORM{'search'}\">$itembegin</a>\n";
###################
# This foreach loop specifies that the link has to be produced for each
$itemid in the array @pagestart
# This is where i have tried many methods to get a list of page numbers
1..$count to replace the $itemid # referenced in the <a
href..>$itemid</a>.
###################
foreach $itemid(@pagestart[29,59,89,119,149,179,209,239,279,309]) {
print "<a
href=\"$cgiurl\?command=listitems\&pos=$itemid\&type=search\&search=$FORM{'search'}\">$itemid</a>\n";
	}
	if ($i < $SIZE) {
	print "$num items found on $count $page.<br>\n";
	}		
	else {
		print "<br>THAT'S THE END OF THE SEARCH ON: $FORM{'search'}.\n";	
	}

###################

Hope someone can assist or at least point me to a location where linking
by page numbers has already been 
scripted and is available for in public domain.

Thanks in advance
William Kolln
wkolln@cia.com.au
for UNsound Records, Sydney


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

Date: Fri, 24 Apr 1998 09:32:42 +0200
From: Inge Soetens <soetensi@se.bel.alcatel.be>
Subject: removing spaces
Message-Id: <3540401A.846@se.bel.alcatel.be>

Hi,

how can I remove all spaces from a line ?

Suppose a line contains

"     blablabla     "

Is there a simple way to only get the "blablabla" ?

Thanks
Inge


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

Date: 24 Apr 1998 08:23:21 GMT
From: steven@DK.net
Subject: Re: removing spaces
Message-Id: <6hpi5p$c8r$2@news.dknet.dk>

Inge Soetens <soetensi@se.bel.alcatel.be> wrote:
> Hi,

> how can I remove all spaces from a line ?

Wow! I read a reply to the *same* question posted only .. an hour ago!

> Is there a simple way to only get the "blablabla" ?

Yes, it's really easy. You might want to look at tr/// and/or s///, or:

$ perldoc perlfaq4

> Thanks

Oh, you're more than welcome.

--
Steven Cotton, Backbone Manager, DKnet A/S, Denmark


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

Date: Thu, 23 Apr 1998 21:47:37 +0200
From: "Wolfgang Steinhauer" <globnet@austriaone.at>
Subject: Re: SendMail on NT
Message-Id: <6hp80i$smr$1@news.Austria.EU.net>


Cory Johnson schrieb in Nachricht <6he6ce$fdr@dfw-ixnews12.ix.netcom.com>...
>I'm switching from a Unix system to a NT system and I have to convert all
my
>perl cgi scripts over.  I was wondering if there is a module I can use on
NT
>that would replace Unix's "sendmail".
>
>Thank you
>Cory Johnson
>
Hi all together,

Cory, you looking for a UnixLike Sendmail:

Here a adress: http://www.metainfo.com

I thing it's a german coorperation, I found this message in the new
NT-Magazin.

Okay, good luck all together

Wolfgang




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

Date: Fri, 24 Apr 1998 01:57:16 -0700
From: Reza Naima <newsgroups@reza.net>
Subject: Re: sendmail
Message-Id: <354053EC.29C5ED7D@reza.net>

Craig Simpson wrote:
> 
> On Mon, 20 Apr 1998 16:35:32 +0200, "Lukas Lundgren" <  > wrote:
> 
> >I am writing a script which sends a mail to me... But how do I change the
> >"From" in the e-mail?
> >
> >/Lukas Lundgren
> >
> >
> 
> $sendmail='/usr/sbin/sendmail -t';
> 

you should use the following flags :
	-t -oi -f user@host.com
                  ^^^^^^^^^^^^^^
			use this AND the from line below.
	

> sub mailto {
> open (MAIL, "|$sendmail")||die "couldn't open pipe to $sendmail";
> print MAIL "To:craigs\@visualperspectives.com\n";
> print MAIL "From: $STRING{'Email'}\n";
> print MAIL "What ever"\n\n";
> print MAIL "body\n";
> close(MAIL);
> 
> That will do it
> 
> Craig


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

Date: Fri, 24 Apr 1998 00:00:35 -0600
From: roach@necrosis.com
Subject: Re: split...
Message-Id: <6hp69j$13v$1@nnrp1.dejanews.com>

In article <6hokp7$v2b$1@nnrp1.dejanews.com>,
  jcoffey@connectnet.com wrote:
> Hey, does anybody have any idea how to split
> a string with a varying number of fields?
[snip]
> open (DUMB_FILE, "dumb.file");
> while (<DUMB_FILE>) {
> 	(????????) = split /,/, $_;
> }

open (DUMB_FILE, "dumb.file");
while (<DUMB_FILE>) {
	@results = split(/,/, $_);
	$num_results = @results;
	...
}

- Brian

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/   Now offering spam-free web-based newsreading


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

Date: 24 Apr 1998 06:38:47 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: split...
Message-Id: <6hpc1n$dpp$1@marina.cinenet.net>

Mark-Jason Dominus (mjd@op.net) wrote:
: The number of the last blah is $#blahs, so the total number of blahs
: is   1 + $#blahs.

The latter is often better handled by @blahs in a scalar context -- e.g.

  my $blahCount = @blahs;

or

  die "Huh?" if $numRequested > @blahs;

---------------------------------------------------------------------
   |   Craig Berry - cberry@cinenet.net
 --*--    Home Page: http://www.cinenet.net/users/cberry/home.html
   |      Member of The HTML Writers Guild: http://www.hwg.org/   
       "Every man and every woman is a star."


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

Date: 24 Apr 1998 11:08:46 +0200
From: Calle Dybedahl <qdtcall@esb.ericsson.se>
Subject: Re: split...
Message-Id: <isra2nwpr5.fsf@godzilla.kiere.ericsson.se>

jcoffey@connectnet.com writes:

> open (DUMB_FILE, "dumb.file");
> while (<DUMB_FILE>) {
> 	(????????) = split /,/, $_;
> }
> 
> what the hell do I put in for "???????"

You seriously need to read the perldata manpage, paying particular
attention to the bits about something called "arrays". 
-- 
		    Calle Dybedahl, UNIX Sysadmin
       qdtcall@esavionics.se  http://www.lysator.liu.se/~calle/


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

Date: Fri, 24 Apr 1998 07:36:45 GMT
From: bart.mediamind@tornado.be (Bart Lateur)
Subject: Re: There *IS* a visual IDE for Perl!
Message-Id: <35473acc.4545812@news.tornado.be>

Randal Schwartz wrote:

>Nothing can parse Perl like /usr/bin/perl.  It just can't be done.

Actually, it depends on where on your disk the Perl executable is.

	Bart.


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

Date: 24 Apr 1998 10:27:31 +0200
From: Calle Dybedahl <qdtcall@esb.ericsson.se>
Subject: Re: There *IS* a visual IDE for Perl!
Message-Id: <isvhrzwrnw.fsf@godzilla.kiere.ericsson.se>

John Porter <jdporter@min.net> writes:

> What we need is a way to get the parser output, and no execution.
> Something similar to -u (dump): compile, do the report, and stop.

Have you looked at the perl compiler included with the late
development versions? You can get a lot of information about a script
by using the modules in it.
-- 
		    Calle Dybedahl, UNIX Sysadmin
       qdtcall@esavionics.se  http://www.lysator.liu.se/~calle/


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

Date: 24 Apr 1998 04:46:26 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: WebMail Server ?
Message-Id: <6hp5f2$k0p$1@comdyn.comdyn.com.au>

[You dirty crossposter. Removed tons of groups]
[Please spend some time reading the usenet faq]

In article <6hjk4v$gc4@news.seed.net.tw>,
	"news.seed.net.tw" <fangshen@kssh.tn.edu.tw> writes:
> Hi,
> 
> If i created a like Yahoo WebMail Server , How can i do ?

Hmm.. I don't know if it is at all possible to create a letter a, like
the Yahoo WebMail Server.

Maybe the following does what you want?

my $a = new Yahoo::Webmail::Server;
$a->configure('like a');

> write a cgi-script ? Please list it ....

Oh boy. How much effort do you think went into the whole of the
my.yahoo system? 20 minutes? 2 days? 3 weeks? 2 months? more? less?
Even if it was only 20 minutes, I don't think I would want to do the
work for you for free. What you could do, however, is offer us money.
That might work, maybe.

If you want to do the work yourself, look into the following modules:

CGI
Mail::Internet
Net::SMTP
Mail::POP3Client
Net::POP3

and the perlsec man pages.

Martien

PS. Does anybody want to write a program for me that weeds out these
posts? Free of cost of course. I'm getting tired of updating my killfile.
Oh, and it should also have nice windows, and a builtin editor with
rich text formatting, and it should be able to post to Usenet, but
only with attachments, and I want it to get pages from the web, but it
has to get the images as well, and display them. And it has to water
my cucumber plants.
-- 
Martien Verbruggen                      |
Webmaster www.tradingpost.com.au        | "In a world without fences,
Commercial Dynamics Pty. Ltd.           |  who needs Gates?"
NSW, Australia                          |


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

Date: 8 Mar 97 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 8 Mar 97)
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". 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 2409
**************************************

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