[17200] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 4612 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Oct 13 21:05:49 2000

Date: Fri, 13 Oct 2000 18:05:13 -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: <971485513-v9-i4612@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Fri, 13 Oct 2000     Volume: 9 Number: 4612

Today's topics:
    Re: ¡ïCan I  help you? explore your future, believe Me, <uri@sysarch.com>
        "Set-Cookie" get written on HTML page epimp@my-deja.com
    Re: "Set-Cookie" get written on HTML page <admin@salvador.venice.ca.us>
        *hex editing* in perl <tomp@sci.fi>
    Re: *hex editing* in perl <uri@sysarch.com>
    Re: [ Wildly OT ] Re: Japanese Girl Has PERL Request. <nospam@david-steuber.com>
    Re: [Q] "pass along" in AUTOLOAD ? <jeffp@crusoe.net>
        [Topic Drift Ensues] Re: Japanese Girl Has PERL Request (Gwyn Judd)
    Re: Better Idiom for @_ $_ usage? <jeffp@crusoe.net>
    Re: Calling Perl scripts inside HTML file within a Wind <nospam@david-steuber.com>
    Re: Cookieless operation <nospam@david-steuber.com>
    Re: Cookieless operation (Vipul Ved Prakash)
        cookies blocked by "location"? (Scott Roberts)
    Re: Giant Array Delay (beginner) (Gwyn Judd)
    Re: Giant Array Delay (beginner) (Gwyn Judd)
    Re: how can I clear all vars at once? (free memory) (Mark-Jason Dominus)
    Re: I need a DB solution <fraser.maclennan@free-minder.com>
        Multiple fork()s? eric@on-e.com
    Re: Parsing form parameters using $$ (Gwyn Judd)
    Re: Perl conditional functions <bart.lateur@skynet.be>
        Perl Output <user1@study.vic.bigpond.net.au>
    Re: Perl Output <user1@study.vic.bigpond.net.au>
    Re: Perl Output (Gwyn Judd)
    Re: Perl Output <mtaylorlrim@my-deja.com>
    Re: Perl rules - Pyhton drools <james@NOSPAM.demon.co.uk>
    Re: Perl Watching Perl? <nospam@david-steuber.com>
        question <c.gersch@iglusoft.com>
        Ref: <mnarayan@crosskeys.com>
        Regex for matching e-mail addresses fgont@my-deja.com
        Regex for matching e-mail addresses fgont@my-deja.com
    Re: What does $++ mean? (Tommi Mäkitalo)
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

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

Date: Sat, 14 Oct 2000 00:13:35 GMT
From: Uri Guttman <uri@sysarch.com>
Subject: Re: ¡ïCan I  help you? explore your future, believe Me, You never worry, forever happy.......
Message-Id: <x7itqwwa8g.fsf@home.sysarch.com>

>>>>> "spam" ==   <anonym@163.net> writes:

  spam>     China five thousand year culture,be born I ching,the book of
  spam>    change,it be turn record china physics,mathematics,relativity
  spam>    and more universe algebraical basic knowledge,and provide in
  spam>    line with standard divination method.  let your intuition
  spam>    talking,chinese i-ching divination anything.

can you divine that you are a stupid spammer and that this is a
newsgroup about perl?

  spam>    I provided service: divination Fortune/Stock
  spam>    Exchange/Contract Signing/Partnership/Official/Sport Race/
  spam>    Lawsuit / Weather/ Calamity and more.....

what about the lawsuit that will shut your site down? do you see it coming?

  spam>     http://iching.126.com

uri

-- 
Uri Guttman  ---------  uri@sysarch.com  ----------  http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page  -----------  http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net  ----------  http://www.northernlight.com


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

Date: Fri, 13 Oct 2000 23:11:00 GMT
From: epimp@my-deja.com
Subject: "Set-Cookie" get written on HTML page
Message-Id: <8s84q0$fpi$1@nnrp1.deja.com>

I'm using perl/cgi to check for a cookie.  If no cookie exists, one is
created, but the following code also appears at the top of the HTML
page in the browser:

Set-Cookie: site_name=603469; path=/; expires=30-Dec-10 GMT

What's the problem?  Thanks.


Sent via Deja.com http://www.deja.com/
Before you buy.


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

Date: Fri, 13 Oct 2000 16:55:37 -0700
From: Pan <admin@salvador.venice.ca.us>
Subject: Re: "Set-Cookie" get written on HTML page
Message-Id: <39E7A0F9.A4992F7A@salvador.venice.ca.us>

Looks to me as though you didn't printed the cookie to the returned
document rather than to the header.  

epimp@my-deja.com wrote:
> 
> I'm using perl/cgi to check for a cookie.  If no cookie exists, one is
> created, but the following code also appears at the top of the HTML
> page in the browser:
> 
> Set-Cookie: site_name=603469; path=/; expires=30-Dec-10 GMT
> 
> What's the problem?  Thanks.
> 
> Sent via Deja.com http://www.deja.com/
> Before you buy.

-- 
Pan
admin@salvador.venice.ca.us
http://www.la-online.com


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

Date: Sat, 14 Oct 2000 02:31:10 +0300
From: tomp at sci fi <tomp@sci.fi>
Subject: *hex editing* in perl
Message-Id: <39E79B3E.2D3E77BB@sci.fi>

Hi, I don't seem to find any good docs how to rewrite few bytes to a
binary file ie. in offset 0x12345 -> FF 0x12346 -> AA, Perldoc -f
syswrite etc. didn't help much :)

Cheers.



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

Date: Sat, 14 Oct 2000 00:07:37 GMT
From: Uri Guttman <uri@sysarch.com>
Subject: Re: *hex editing* in perl
Message-Id: <x7lmvswaid.fsf@home.sysarch.com>

>>>>> "tasf" == tomp at sci fi <tomp@sci.fi> writes:

  tasf> Hi, I don't seem to find any good docs how to rewrite few bytes to a
  tasf> binary file ie. in offset 0x12345 -> FF 0x12346 -> AA, Perldoc -f
  tasf> syswrite etc. didn't help much :)

perldoc -f seek
perldoc -f sysread
perldoc -f syswrite
perldoc -f open
perldoc opentut
perldoc binmode

it's all there and not difficult.

uri

-- 
Uri Guttman  ---------  uri@sysarch.com  ----------  http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page  -----------  http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net  ----------  http://www.northernlight.com


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

Date: Fri, 13 Oct 2000 23:47:01 GMT
From: David Steuber <nospam@david-steuber.com>
Subject: Re: [ Wildly OT ] Re: Japanese Girl Has PERL Request.
Message-Id: <m37l7cb8y3.fsf@solo.david-steuber.com>

Jeff Zucker <jeff@vpservices.com> writes:

' Old enough to have memory lapses apparently. :-)

Like they said about woodstock, if you remember the '70s, you weren't
there ;-).

-- 
David Steuber | Perl apprentice, Apache/mod_perl user,
NRA Member    | and general Internet web wannabe.
ICQ# 91465842
***         http://www.david-steuber.com/          ***


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

Date: Fri, 13 Oct 2000 19:06:56 -0400
From: Jeff Pinyan <jeffp@crusoe.net>
Subject: Re: [Q] "pass along" in AUTOLOAD ?
Message-Id: <Pine.GSO.4.21.0010131856260.14163-100000@crusoe.crusoe.net>

[posted & mailed]

On Oct 13, kj0 said:

>I'm writing AUTOLOAD in a base class to handle some common methods,
>but I want it to pass along (to the superclass, typically UNIVERSAL)
>all calls to methods whose names are all-caps (e.g. DESTROY).  How is
>that done?

This works for me:

  package Foo;
  use strict;
  use vars '$AUTOLOAD';

  AUTOLOAD {
    (my $meth = $AUTOLOAD) =~ s/.*:://;
    if ($meth =~ /\A[A-Z]+\z/) { goto &{ $SUPER::{$meth} } }
    # ...
  }

-- 
Jeff "japhy" Pinyan     japhy@pobox.com     http://www.pobox.com/~japhy/
PerlMonth - An Online Perl Magazine            http://www.perlmonth.com/
The Perl Archive - Articles, Forums, etc.    http://www.perlarchive.com/
CPAN - #1 Perl Resource  (my id:  PINYAN)        http://search.cpan.org/





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

Date: Fri, 13 Oct 2000 23:36:32 GMT
From: tjla@guvfybir.qlaqaf.bet (Gwyn Judd)
Subject: [Topic Drift Ensues] Re: Japanese Girl Has PERL Request.
Message-Id: <slrn8uf73s.m8q.tjla@thislove.dyndns.org>

I was shocked! How could Russ Jones <russ_jones@rac.ray.com>
say such a terrible thing:

>Brian's got a point. Home VCR technology was greatly influenced by the
>porn industry, and particularly by Sony's reluctance to license the
>superior Beta format. I remember reading a report that said that some
>massive percent of all web traffic was porn. And they've sure been
>leaders in pop-up browser window technology. (So I've been told.)
                                               ^^^^^^^^^^^^^^^^^
                                               
*cough*bullshit*cough* Yeah I *heard* they had contributed to a massive
improvement in the quality of video over the internet. Don't remember
where I read about that though ;)

-- 
Gwyn Judd (print `echo 'tjla@guvfybir.qlaqaf.bet' | rot13`)
The happiest time of a person's life is after his first divorce.
		-- J.K. Galbraith 


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

Date: Fri, 13 Oct 2000 19:28:31 -0400
From: Jeff Pinyan <jeffp@crusoe.net>
Subject: Re: Better Idiom for @_ $_ usage?
Message-Id: <Pine.GSO.4.21.0010131911340.14163-100000@crusoe.crusoe.net>

[posted & mailed]

On Oct 13, Roy.Ivy.III@nMail.com said:

>Is there a better idiom for this?

># if no arguments, use $_ as default
># return context = scalar/list => copy arguments and return list
># return context = void        => change arguments directly

This is what I suggest:

  sub trim {
    @_ = $_ if not @_ and defined wantarray;
    @_ = @_ if defined wantarray;
    for (@_ ? @_ : $_) { s/^\s+//, s/\s+$// }
    return wantarray ? @_ : $_[0] if defined wantarray;
  }

The @_ = @_ gets rid of the magical binding between $_[$X] and the actual
arguments.  I like the shortness and simplicitly of my code.

-- 
Jeff "japhy" Pinyan     japhy@pobox.com     http://www.pobox.com/~japhy/
PerlMonth - An Online Perl Magazine            http://www.perlmonth.com/
The Perl Archive - Articles, Forums, etc.    http://www.perlarchive.com/
CPAN - #1 Perl Resource  (my id:  PINYAN)        http://search.cpan.org/





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

Date: Fri, 13 Oct 2000 23:52:31 GMT
From: David Steuber <nospam@david-steuber.com>
Subject: Re: Calling Perl scripts inside HTML file within a Windows environment
Message-Id: <m33di0b8ow.fsf@solo.david-steuber.com>

<aycwong2@yahoo.com> writes:

' ok. So may I ask which group should I be posting to? I'm not a frequent 
' newsgroup user. Thanx. 

' > This is a webserver question.

Try comp.infosystems.www.servers.ms-windows

MS Windows server.  Paradoxical in the extreme.

-- 
David Steuber | Perl apprentice, Apache/mod_perl user,
NRA Member    | and general Internet web wannabe.
ICQ# 91465842
***         http://www.david-steuber.com/          ***


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

Date: Sat, 14 Oct 2000 00:12:57 GMT
From: David Steuber <nospam@david-steuber.com>
Subject: Re: Cookieless operation
Message-Id: <m3u2ag9t6i.fsf@solo.david-steuber.com>

Bart Lateur <bart.lateur@skynet.be> writes:

'  * Move around in your site using an extra form variable, or by
' appending "?session=blahblablah" to the URL.

Munging the URL in some way (like adding query strings) does work.
The problem is, it is even worse than cookies from a privacy
standpoint.  Think about the referrer header when pulling an ad or
following a link to another site.

Apache has a module for doing URI manipulation, I believe.  IIS has a
filter available for doing the same thing.

Personally, I think non-persistent cookies are a better way to go (no
expiration on the cookie means no store on disk).

The entire cookie controversy, which has nothing to do with Perl, is
totally over rated anyway.  Fiddling with the URI will do the same
thing as cookies but with less privacy.  Cookies only get sent to the
server that sets them.  Referrer headers get sent anywhere unless a
proxy filters them out.

-- 
David Steuber | Perl apprentice, Apache/mod_perl user,
NRA Member    | and general Internet web wannabe.
ICQ# 91465842
***         http://www.david-steuber.com/          ***


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

Date: 14 Oct 2000 00:55:45 GMT
From: vipul@shell2.ba.best.com (Vipul Ved Prakash)
Subject: Re: Cookieless operation
Message-Id: <slrn8ufboh.c2l.vipul@shell2.ba.best.com>

In article <m3u2ag9t6i.fsf@solo.david-steuber.com>, David Steuber wrote:
>Bart Lateur <bart.lateur@skynet.be> writes:
>
>'  * Move around in your site using an extra form variable, or by
>' appending "?session=blahblablah" to the URL.

CGI::Persistent extends CGI to do this transparently.  From manpage:

"...introduces persistent CGI sessions that store their state data on the
server side.  When a new session starts, CGI::Persistent automatically
generates a unique state identification string and associates it with a
persistent object on the server.  The identification string is used in URLs
or forms to refer to the particular session.  Request attributes are
transparently committed to the associated object and the object data is
bound to the query.

CGI::Persistent is derived from CGI.pm.  CGI.pm methods have been overridden
as appropriate."

best,
vipul.

--

Vipul Ved Prakash, http://www.vipul.net/
PGP Fingerprint d5f78d9fc694a45a00ae086062498922



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

Date: Fri, 13 Oct 2000 23:30:49 GMT
From: scott@heelspurs.castrate.this.part.com (Scott Roberts)
Subject: cookies blocked by "location"?
Message-Id: <39e7971e.38800479@news.knology.net>


I am part of an affiliate system for tracking sales.  They use
cookies. (BTW what percent of visitors are not using cookies?) 
Could statements such as:
print "Location:
http://blah-blah.com/cgi-bin/redirect.cgi?item_for_sale=book1\n\n";

cause the cookie to not be recorded?  The online docs say use \015\012
in place of \n for better compatability.

The problem has been that I wrote the redirect program, saw that it
did indeed redirect me to the proper items for sale, and that it did
indeed cause their counter to increase by one for each visit, but that
my sales dropped from 2% of the clicks to 1%, indicating that their
"click-thru" counter recorded the visit, but that the subsequent
cookie for tracking a possible sale was not accepted.  But they also
made changes to their syatem at the same time I made the redicrect.cgi
change, so it's possible that the decrease in sales was their fault.

If my speculation is correct, that's a pretty nasty "gotcha". For
example, it could mean someone out there is making $10,000 per year on
an affiliate system when it should be $20,000.


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

Date: Fri, 13 Oct 2000 23:09:44 GMT
From: tjla@guvfybir.qlaqaf.bet (Gwyn Judd)
Subject: Re: Giant Array Delay (beginner)
Message-Id: <slrn8uf5hj.m8q.tjla@thislove.dyndns.org>

I was shocked! How could peliknish@my-deja.com <peliknish@my-deja.com>
say such a terrible thing:
>In article <slrn8ue3q8.jlo.tjla@thislove.dyndns.org>,
>  tjla@guvfybir.qlaqaf.bet (Gwyn Judd) wrote:
>> I was shocked! How could peliknish@my-deja.com <peliknish@my-deja.com>
>> say such a terrible thing:
>> >howdy,
>> >Just starting to learn perl/cgi.
>> >
>> >Got a script working (by Matt Wright) that picks random strings...
>
>By the way, I didn't mean this to be a criticism of Matt Wright.  I
>know nothing about Matt Wright's scripting skill.

heh. Most people on the group do. And unless he has improved since he
wrote his scripts, he is not very good.

-- 
Gwyn Judd (print `echo 'tjla@guvfybir.qlaqaf.bet' | rot13`)
Good day to let down old friends who need help.


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

Date: Fri, 13 Oct 2000 23:14:09 GMT
From: tjla@guvfybir.qlaqaf.bet (Gwyn Judd)
Subject: Re: Giant Array Delay (beginner)
Message-Id: <slrn8uf5ps.m8q.tjla@thislove.dyndns.org>

I was shocked! How could peliknish@my-deja.com <peliknish@my-deja.com>
say such a terrible thing:

>Thanks for the code Gwyn.  Now if you could just give me a couple more
>bits of information you can save me from actually having to learn
>anything from a book.

Resistance (of learning) is futile. Read the documentation:

perldoc CGI
perldoc -q 'random line'

>Could you show me how the name of the text file, let's call
>it "word_list.txt", plugs into
>
>@ARGV = map { '/usr/share/games/fortunes/' . $_ }
>      qw(education cookie computers wisdom work);

You'd do something like:

@ARGV = map { '/my/directory/name/' . $_ }
        qw(word_list.txt);

>And is it implemented on an .html page like this?:
>
><!--#exec cgi="/cgi-bin/gwynjudds_script.pl"-->

Oh no you can just call it as a CGI eg:

http://www.myserver.com/cgi-bin/rand.pl

-- 
Gwyn Judd (print `echo 'tjla@guvfybir.qlaqaf.bet' | rot13`)
Behind every argument is someone's ignorance. (contributed by Frank
v Waveren)


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

Date: Fri, 13 Oct 2000 22:09:12 GMT
From: mjd@plover.com (Mark-Jason Dominus)
Subject: Re: how can I clear all vars at once? (free memory)
Message-Id: <39e78807.5190$372@news.op.net>

In article <8FCC90EC6darkononenet@206.112.192.118>,
David Wall <darkon@one.net> wrote:
>symbolic references like the above are a bad idea. See 
>http://www.plover.com/~mjd/perl/varvarname.html for reasons why. 

When I saw the original article, I thought about referring the author to
varvarname.html, but then I decided it would be overkill.  The author
doesn't need to see my reasons about what $$name=$value is a bad
idea; he's already found out the hard way!

"How do I get rid of them afterwards?  I created a bunch of variables,
 but I don't know just what they were."

"Gosh, it's too bad you didn't put them all in one hash!  Then you
 could just have erased the hash."




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

Date: Sat, 14 Oct 2000 00:20:12 +0100
From: Fraser Maclennan <fraser.maclennan@free-minder.com>
Subject: Re: I need a DB solution
Message-Id: <39E798AC.465859DC@free-minder.com>

I know Inprise (formerly Borland) have released an open source version of
Interbase for Linux (as I am currently using it) and I think they are intending
to release the same for the Windows environments. You may want to check out
their site.

Fraser

Neb wrote:

> Ok,
>
> I don't have anymore choice, I need a DB for my web site (which now has more
> than 600 members).
>
> Here are the facts: my web site "engine" is in Perl, that I develop on my PC
> (Windows 98).  My site is hosted by a "free" server on the internet (so, I
> don't have the control on the server) which is running some flavor of Unix.
>
> Since I entend for my site to have one day thousands of members, I need a DB
> that I could change for something like SQL Server using ODBC.  But for now,
> I would maybe like to use Access, since I have it, plus it's easy to
> manipulate the data in it.
>
> But if I don't have much access to my internet server, plus it's Unix, is it
> a good idea to use Access (and how)?!
>
> Or is there an other DB I can use that I don't need some kind of DB server
> to access it (not like MySql which needs to install a server to access a DB)
> ?  Some DB that can be used under Windows and Unix ?
>
> Thanks for the help!
>
> neb



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

Date: Fri, 13 Oct 2000 23:49:23 GMT
From: eric@on-e.com
Subject: Multiple fork()s?
Message-Id: <7cNF5.1172$_o5.4496@typhoon.san.rr.com>

I've exhaustedly searched the Net looking for some basic code to 
handle multiple forks in Perl to no success.  The following code snippet
I put together doesn't work as I want it to:

#!/usr/bin/perl -w

print "parent - pid $$\n";

foreach my $i (1..3) {

        my $pid;

        defined($pid = fork) || die "unable to fork: $!\n";

        if (!$pid) {
                print "child $i - pid $pid\n";
        } else {
                wait;
        }
}

It outputs:

$ ./test_fork 
parent - pid 991
child 1 - pid 0
child 2 - pid 0
child 3 - pid 0
child 3 - pid 0
child 2 - pid 0
child 3 - pid 0
child 3 - pid 0

Indicating that the children of the children are evaluating the print() as 
well, which is not want I want.  I'd like the output (indicating that the 
children are only forking additional children, with everyone outputing one
print() statement):

$ ./test_fork 
parent - pid 991
child 1 - pid 0
child 2 - pid 0
child 3 - pid 0

I know it's something simple.. :-/


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

Date: Fri, 13 Oct 2000 23:30:54 GMT
From: tjla@guvfybir.qlaqaf.bet (Gwyn Judd)
Subject: Re: Parsing form parameters using $$
Message-Id: <slrn8uf6pa.m8q.tjla@thislove.dyndns.org>

I was shocked! How could nobull@mail.com <nobull@mail.com>
say such a terrible thing:
><arancj@yahoo.com> writes:
>
>> I want to...
>
> [...use symbolic refernces]
>
>Stop wanting to do that.
>
> [ but it doesn't work ]
>
>You can't use a symbolic refernce to a variable delared using my().
>
>Keep the my() and ditch the symbolic references.

 ...and use a hash instead, right?

perldoc perldata

-- 
Gwyn Judd (print `echo 'tjla@guvfybir.qlaqaf.bet' | rot13`)
A yawn is a silent shout.
-G.K. Chesterton


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

Date: Fri, 13 Oct 2000 23:26:07 GMT
From: Bart Lateur <bart.lateur@skynet.be>
Subject: Re: Perl conditional functions
Message-Id: <0e6fus4fot4ng61puqci42t74q5v8387du@4ax.com>

Liam wrote:

>In my conditional statement I want any of the variables with the value
>of '0' to be disregarded from the rest of the program.

>if ($FORM{$name} == 0) {

Careful. This does a numerical test on the entry. Use 'eq' or "ne'
instead.

If you don't mind ignoring the empty string as well, you might just as
well do:

	unless($FORM{$name}) {
		...  # not zero, not empty string!	
	}

-- 
	Bart.


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

Date: Fri, 13 Oct 2000 23:25:52 GMT
From: Jayson Barber <user1@study.vic.bigpond.net.au>
Subject: Perl Output
Message-Id: <39E7A616.E66B0B1E@study.vic.bigpond.net.au>


--------------B25ACC5AE9D6F6534917176B
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hey!

Is there a way to dump all of the output of a perl script to a file,
without too much coding changes, eg one line at the top of the program,
etc

--------------B25ACC5AE9D6F6534917176B
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hey!
<p>Is there a way to dump all of the output of a perl script to a file,
<u>without</u> too much coding changes, eg one line at the top of the program,
etc</html>

--------------B25ACC5AE9D6F6534917176B--



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

Date: Fri, 13 Oct 2000 23:28:24 GMT
From: Jayson Barber <user1@study.vic.bigpond.net.au>
Subject: Re: Perl Output
Message-Id: <39E7A6AE.921A7C70@mbox.com.au>



Sorry, if your going to reply to this message via email use the
following address: jaysonb@mbox.com.au



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

Date: Sat, 14 Oct 2000 00:09:33 GMT
From: tjla@guvfybir.qlaqaf.bet (Gwyn Judd)
Subject: Re: Perl Output
Message-Id: <slrn8uf91o.mmh.tjla@thislove.dyndns.org>

I was shocked! How could Jayson Barber <user1@study.vic.bigpond.net.au>
say such a terrible thing:
>
>--------------B25ACC5AE9D6F6534917176B
>Content-Type: text/plain; charset=us-ascii
>Content-Transfer-Encoding: 7bit
>
>Hey!
>
>Is there a way to dump all of the output of a perl script to a file,
>without too much coding changes, eg one line at the top of the program,
>etc

perl my_perl_script.pl > my_output.txt

-- 
Gwyn Judd (print `echo 'tjla@guvfybir.qlaqaf.bet' | rot13`)
"Maybe we... we all need to wake up. Become special, before it's too late."
        -- Duncan (to Marcus), "Exogenesis"


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

Date: Fri, 13 Oct 2000 23:57:05 GMT
From: Mark <mtaylorlrim@my-deja.com>
Subject: Re: Perl Output
Message-Id: <8s87gf$hv0$1@nnrp1.deja.com>

Sorry, but I only reply to the group. Post here...read here.

No coding at all...

prog.pl > filename


Try that.

Mark

In article <39E7A6AE.921A7C70@mbox.com.au>,
  Jayson Barber <user1@study.vic.bigpond.net.au> wrote:
>
>
> Sorry, if your going to reply to this message via email use the
> following address: jaysonb@mbox.com.au
>
>

--
Please reply to this newsgroup as my Deja mail
is used as a spam catcher only!


Sent via Deja.com http://www.deja.com/
Before you buy.


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

Date: Fri, 13 Oct 2000 23:55:41 +0100
From: James Taylor <james@NOSPAM.demon.co.uk>
Subject: Re: Perl rules - Pyhton drools
Message-Id: <ant132241209fNdQ@oakseed.demon.co.uk>

In article <x7r95kwn6x.fsf@home.sysarch.com>, Uri Guttman
<URL:mailto:uri@sysarch.com> wrote:
> 
> i skipped it just because of the size.

I wish I had that facility. :-(

> what on earth was the image of?

A cartoon style camel eating a python.
Mildly amusing, but not worth the trouble.

-- 
James Taylor <james (at) oakseed demon co uk>
PGP key available ID: 3FBE1BF9
Fingerprint: F19D803624ED6FE8 370045159F66FD02



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

Date: Sat, 14 Oct 2000 00:00:10 GMT
From: David Steuber <nospam@david-steuber.com>
Subject: Re: Perl Watching Perl?
Message-Id: <m3y9zs9trt.fsf@solo.david-steuber.com>

rathmore@tierceron.com writes:

' Trouble with the debugger is that it doesn't hang everytime, just
' occassionally, and Net::FTP does a ton of stuff so stepping through the
' code takes forever!

I believe you can set break points.  Even conditional breakpoints.

Then again, I believe a lot of things.

-- 
David Steuber | Perl apprentice, Apache/mod_perl user,
NRA Member    | and general Internet web wannabe.
ICQ# 91465842
***         http://www.david-steuber.com/          ***


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

Date: Sat, 14 Oct 2000 02:54:17 +0200
From: "Christian Gersch" <c.gersch@iglusoft.com>
Subject: question
Message-Id: <8s8avr$sun$1@news.online.de>

Hi there!

I'm a really Perl-newbie. Perhaps you can answer my stupid question:

I have got a textfile that incluedes 7 lines of text. The variable $text
should just include the 4th line of my textfile.
Please help me!

-Chris
--
 ...................................
IgluSoft, Bad Homburg
service24@de.isneurope.com
+49 700 IGLUSOFT / www.isneu.com
Geld für Ihre Startseite: www.myISN.de




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

Date: Fri, 13 Oct 2000 18:37:23 -0400
From: Manoj Narayanankutty <mnarayan@crosskeys.com>
Subject: Ref:
Message-Id: <39E78EA3.22212113@crosskeys.com>

Hello,
        I currently use perl 5.005-02 for our application running on
Solaris 2.6 machine. We are planning to port the application to
Solaris 7. Which version is compatible for  Solaris 7. Do you have
different versions for  Solaris 7,  64 bit and 32 bit architecture ? If
so
please specify those details aswell.

Regards,

Manoj




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

Date: Fri, 13 Oct 2000 23:53:15 GMT
From: fgont@my-deja.com
Subject: Regex for matching e-mail addresses
Message-Id: <8s8799$hs6$1@nnrp1.deja.com>

Hi!

I'm looking for a regex for matching regular expressions.

For example, given the string:
$a= "\"Gont \@ Fernando Ariel", <fernando\@hey.com>,
someone\@somewhere.com";

It should only match "fernando\@hey.com" and "someone@@somewhere.com"

Kind regards,

Fernando Gont
e-mail: fgont@ANTISPAM.softhome.net

[To send a personal reply please remove the antispam tag]


Sent via Deja.com http://www.deja.com/
Before you buy.


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

Date: Fri, 13 Oct 2000 23:53:47 GMT
From: fgont@my-deja.com
Subject: Regex for matching e-mail addresses
Message-Id: <8s87a9$hs9$1@nnrp1.deja.com>

Hi!

I'm looking for a regex for matching regular expressions.

For example, given the string:
$a= "\"Gont \@ Fernando Ariel", <fernando\@hey.com>,
someone\@somewhere.com";

It should only match "fernando\@hey.com" and "someone\@somewhere.com"

Kind regards,

Fernando Gont
e-mail: fgont@ANTISPAM.softhome.net

[To send a personal reply please remove the antispam tag]


Sent via Deja.com http://www.deja.com/
Before you buy.


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

Date: Fri, 13 Oct 2000 08:41:54 +0200
From: tm@lx.intra.schwaegerl.de (Tommi Mäkitalo)
Subject: Re: What does $++ mean?
Message-Id: <ira6s8.9bu.ln@consulting.schwaegerl.de>

In article <8rporq$tgv$1@nnrp1.deja.com>,
	harry@drej.com writes:
> I'm looking at some sample code which begins:
> 
> #!/usr/bin/perl -T
> use strict;
> $++;
> 
 ...
Hi

Congratulations! I think you found a combination of characters, which
does not mean anything in perl. Maybe we can use it for something in the
next Version.



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

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 4612
**************************************


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