[10209] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 3803 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Sep 23 16:07:22 1998

Date: Wed, 23 Sep 98 13:01:29 -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           Wed, 23 Sep 1998     Volume: 8 Number: 3803

Today's topics:
    Re: Poll: How Did You Learn Perl? <richgrise@entheosengineering.com>
    Re: Poll: How Did You Learn Perl? <richgrise@entheosengineering.com>
    Re: Poll: How Did You Learn Perl? <ajohnson@gpu.srv.ualberta.ca>
    Re: Poll: How Did You Learn Perl? (Ilya Zakharevich)
    Re: Poll: How Did You Learn Perl? (Nathan V. Patwardhan)
    Re: Poll: How Did You Learn Perl? (Matt Knecht)
    Re: Poll: How Did You Learn Perl? <ckuskie@cadence.com>
    Re: Poll: How Did You Learn Perl? scott@softbase.com
    Re: Poll: How Did You Learn Perl? <merlyn@stonehenge.com>
    Re: Poll: How Did You Learn Perl? <cpavel@nortel.ca>
    Re: Poll: How Did You Learn Perl? <uri@camel.fastserv.com>
    Re: Poll: How Did You Learn Perl? <jdporter@min.net>
    Re: Poll: How Did You Learn Perl? (Ben Coleman)
    Re: problem retreiving cookie (Matthew Bafford)
    Re: problem retreiving cookie (Larry Rosler)
    Re: Q: Picking an element from a hash (not knowing whic <richgrise@entheosengineering.com>
    Re: Q: Picking an element from a hash (not knowing whic <jdporter@min.net>
    Re: question about variable interpolation in search pat <r28629@email.sps.mot.com>
    Re: Regular Expression Beautifier (Ilya Zakharevich)
    Re: Simple, efficient way of checking whether $VAR is a (Matt Knecht)
    Re: Simple, efficient way of checking whether $VAR is a (Larry Rosler)
    Re: undefined value as ARRAY reference <baliga@synopsys.com>
        Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)

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

Date: Wed, 23 Sep 1998 13:52:00 -0500
From: Rich Grise <richgrise@entheosengineering.com>
To: John Porter <jdporter@min.net>
Subject: Re: Poll: How Did You Learn Perl?
Message-Id: <36094350.7BA0@entheosengineering.com>

> . Something on the WWW

> --
> John "Many Jars" Porter

Primarily, by plowing through Matt Wright's counter and wwwboard.
(this isn't really fair - I learned C the hard way between 20
and 10 years ago)
-- 
Rich Grise
richgrise@entheosengineering.com
(No need to futz with my e-mail: I have a "Delete" button!)


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

Date: Wed, 23 Sep 1998 13:57:32 -0500
From: Rich Grise <richgrise@entheosengineering.com>
To: Matt Knecht <hex@voicenet.com>
Subject: Re: Poll: How Did You Learn Perl?
Message-Id: <3609449C.31D@entheosengineering.com>

Matt Knecht wrote:
> 
> When I'm done learning perl, I'll let you know!  So far I've been at it
> for almost 7 months now.  I have a feeling I have quite of bit time left
> to go.
> Matt Knecht - <hex@voicenet.com>

Excellent point - maybe the question should be,
"How did you learn enough perl to start hacking Matt's scripts?"
or
"How did you learn enough perl to field a working CGI?"
or
"How did you learn enough perl to ask an intelligent question?"
or
"How did you learn enough perl to get yourself into serious trouble?"
-- 
Rich Grise
richgrise@entheosengineering.com
(No need to futz with my e-mail: I have a "Delete" button!)


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

Date: Wed, 23 Sep 1998 14:07:15 -0500
From: Andrew Johnson <ajohnson@gpu.srv.ualberta.ca>
Subject: Re: Poll: How Did You Learn Perl?
Message-Id: <360946E3.666156DD@gpu.srv.ualberta.ca>

John Porter wrote:

> 
> From what resource(s) did you learn Perl?
> 
> . Llama v.1
> . Llama v.2
> . Camel v.1
> . Camel v.2
> . Other book (give name)
> . Docs included in the distribution
> . Something on the WWW
> . Studying existing code
> . Class/tutor

camel v1 + online docs + a few months lurking here and
studying answers --- then camel v2, hip owls, panther,
and I'll stop learning Perl when Perl stops having more
to teach me :-)

regards
andrew


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

Date: 23 Sep 1998 19:16:42 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: Poll: How Did You Learn Perl?
Message-Id: <6ubheq$k3m$1@mathserv.mps.ohio-state.edu>

[A complimentary Cc of this posting was sent to John Porter 
<jdporter@min.net>],
who wrote in article <360923EC.8E9919D0@min.net>:
> . Llama v.1
> . Llama v.2
> . Camel v.1
> . Camel v.2
> . Other book (give name)
> . Docs included in the distribution
> . Something on the WWW
> . Studying existing code
> . Class/tutor

o Excellent perl4 manpage
o Excellent (but extremely buggy) perl5 source code (+ Emacs macros to
  browse it).

(bugginess is what forces you to look there).

Ilya


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

Date: Wed, 23 Sep 1998 19:16:45 GMT
From: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: Poll: How Did You Learn Perl?
Message-Id: <xObO1.601$_c5.5434687@news.shore.net>

Rich Grise (richgrise@entheosengineering.com) wrote:

: "How did you learn enough perl to start hacking Matt's scripts?"

*gack*

: "How did you learn enough perl to field a working CGI?"

My CGI was working just fine without Perl.  CGI programs may be nicely
written in Perl.  :-)

--
Nate Patwardhan|root@localhost
"Fortunately, I prefer to believe that we're all really just trapped in a
P.K. Dick book laced with Lovecraft, and this awful Terror Out of Cambridge
shall by the light of day evaporate, leaving nothing but good intentions in
its stead." Tom Christiansen in <6k02ha$hq6$3@csnews.cs.colorado.edu>


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

Date: Wed, 23 Sep 1998 19:23:37 GMT
From: hex@voicenet.com (Matt Knecht)
Subject: Re: Poll: How Did You Learn Perl?
Message-Id: <ZUbO1.613$XP2.5187130@news3.voicenet.com>

Rich Grise <richgrise@entheosengineering.com> wrote:
>Matt Knecht wrote:
>> 
>> When I'm done learning perl, I'll let you know!  So far I've been at it
>> for almost 7 months now.  I have a feeling I have quite of bit time left
>> to go.
>
>Excellent point - maybe the question should be,
>"How did you learn enough perl to start hacking Matt's scripts?"
>or
>"How did you learn enough perl to field a working CGI?"
>or
>"How did you learn enough perl to ask an intelligent question?"
>or
>"How did you learn enough perl to get yourself into serious trouble?"

None of the above.

Perl was always very happy to let me program in C.  It took me a long
time to come around to the 'Perl Way'.  The Camel did next to nothing to
make me understand the 'Perl Way' (Perhaps, because I didn't want it to.
I mostly use it as a reference).

The two biggest influences, in order, would have to be
comp.lang.perl.misc and _Effective_Perl_Programming_.  I think after I
finish going thorugh the _Perl_Cookbook_ I'll have come around to the
Perl Way.

-- 
Matt Knecht - <hex@voicenet.com>


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

Date: Wed, 23 Sep 1998 12:27:04 -0700
From: Colin Kuskie <ckuskie@cadence.com>
To: John Porter <jdporter@min.net>
Subject: Re: Poll: How Did You Learn Perl?
Message-Id: <Pine.GSO.3.96.980923114542.6470C-100000@pdxue150.cadence.com>

> From what resource(s) did you learn Perl?

 O Llama v.1
 . Llama v.2
 O Camel v.1
 . Camel v.2
 . Other book (give name)
 O Docs included in the distribution
 0 comp.lang.perl
 0 comp.lang.perl.misc
 . IRC
 . Something on the WWW
 0 Studying existing code
 . Class/tutor

I added a few resources that I thought you were missing, although I
suppose you could argue that the newsgroups and IRC were just examples
of tutoring.

IMO, the original llama and camel were great ways to learn about Perl
basics, but the newsgroups were the best way to learn about how people
were writing "real" code.  Back when a good chunk of the posts were
from Larry, Randal and Tom Christiansen you could learn a lot really
quick. Check out this beauty from Randal:

:From merlyn@stonehenge.comMon Nov 20 08:37:22 1995
:
:I've written loops that look like:
:
:	while (<>) {
:		s/#.*//; # toss comments
:		next if /^\s*$/; # skip blank lines
:		redo if s/\\$// and $_ .= <>; # handle continuations
:		...
:		...
:	}
:
:and yes, the order of those three statements is very significant.
:Work it out to see why.

Most of the FMTEYETKs were developed from postings Tom Christiansen
made on comp.lang.perl.  And getting a reply from Larry Wall was really
cool (although I hear such embarrases him) let alone reading his
discussions about Perl.  Now they have all pretty much gone away.

Tom Phoenix was one of the most prolific posters to this group; you
could always get a reference to a FAQ or section of code from him.
Ever since the thread about his answers being fluff (which he decided
not to participate in) I notice that he's gone, too.

The newsgroup was useful because you could learn things from the
neo-phytes who asked questions and the seasoned programmers who
answered questions.  Even "newbies" were tolerated because they were a
very small minority. Then they grew in volume and decreased in
politeness and the newsgroup culture evolved in response.  People who
freely donated their time to answer questions didn't want to waste
thier time answering the same frequently asked or misguided questions
or dealing with the rudeness evinced by the newbie flood.

And of course, there were the great debates about how to "handle" the
newbies.  clp.modules was spun off to give the module maintainers a
safe place to discuss module creation.  The FAQ was modified and
finally revamped but since the flood wasn't reading it, it didn't help
much.  Larry Wall slowly faded away.  People harangued Tom Christiansen
for giving the newbies the same answers (in the same tone of voice) he
and others had given for years (I got a few myself back in '92).
Others are getting the same treatment now.  I don't know why Randal
left.  Nobody beat him up, maybe he's just overwhelmed by the volume.

Finally, we spun off clp.moderated to make a place safe from FAQ's and
mis-guided questions.  But because the neo-phytes can't/don't post
there, there are no great answers to read or code to study.

Whoa.  How did I get up on this soapbox?  I'd better go simulate
some transistors.

Colin Kuskie



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

Date: 23 Sep 1998 19:43:37 GMT
From: scott@softbase.com
Subject: Re: Poll: How Did You Learn Perl?
Message-Id: <36094f69.0@news.new-era.net>

>So here's a poll for everyone.
>From what resource(s) did you learn Perl?

Reading Perl code and the man page. I had a mailing list server
package in 1993 which sucked. I began patching it up to do
what I wanted, and began learning Perl. I eventually knew Perl
well enough to scrap the server and start over from scratch
with my own server. Then I graduated, so it was never finished.

Scott
--
Look at Softbase Systems' client/server tools, www.softbase.com
Check out the Essential 97 package for Windows 95 www.skwc.com/essent
All my other cool web pages are available from that site too!
My demo tape, artwork, poetry, The Windows 95 Book FAQ, and more. 


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

Date: Wed, 23 Sep 1998 19:38:20 GMT
From: Randal Schwartz <merlyn@stonehenge.com>
Subject: Re: Poll: How Did You Learn Perl?
Message-Id: <8czpbqvcvd.fsf@gadget.cscaper.com>

>>>>> "Rich" == Rich Grise <richgrise@entheosengineering.com> writes:

Rich> "How did you learn enough perl to get yourself into serious trouble?"

Heh.  That's a matter of public record.

:-)

(See http://www.lightlink.com/fors/ and http://www.rahul.net/jeffrey/ovs/
if you are unfamiliar with my on-going legal battles.)

-- 
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn@teleport.com)
Web: <A HREF="http://www.stonehenge.com/merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me


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

Date: Wed, 23 Sep 1998 15:23:17 -0400
From: Cristian Pavel <cpavel@nortel.ca>
Subject: Re: Poll: How Did You Learn Perl?
Message-Id: <36094AA5.6047F67E@nortel.ca>

John Porter wrote:

 ...

So here's a poll for everyone.

>From what resource(s) did you learn Perl?

 . Llama v.1 - Yes
 . Llama v.2 - No
 . Camel v.1 - No
 . Camel v.2 - Yes
 . Other book (give name): Advanced Perl Programming,
                                     Mastering Regular Expressions,
                                     Perl Cookbook
 . Docs included in the distribution - Yes
 . Something on the WWW - YES
 . Studying existing code - Yes
 . Class/tutor - Daniel Klein & Tom Christiansen


Cristian Pavel
Nortel Networks



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

Date: 23 Sep 1998 15:43:41 -0400
From: Uri Guttman <uri@camel.fastserv.com>
Subject: Re: Poll: How Did You Learn Perl?
Message-Id: <saraf3qfwcy.fsf@camel.fastserv.com>

>>>>> "IZ" == Ilya Zakharevich <ilya@math.ohio-state.edu> writes:

  >> . Llama v.1
  >> . Llama v.2
  >> . Camel v.1
  >> . Camel v.2
  >> . Other book (give name)
  >> . Docs included in the distribution
  >> . Something on the WWW
  >> . Studying existing code
  >> . Class/tutor

  IZ> o Excellent perl4 manpage

same here. perl4 man page then pink camel when it came out. then blue
camel and online docs. advanced perl was useful. mastering regexes was
invaluable. cookbook is being digested now. c.l.p.* has helped in finer
points, i post something and someone posts something better. george reese
is a great resource :-).

BTW it's nice to have a nonflaming, interesting long thread!

uri


-- 
Uri Guttman                             Speed up your web server with Fast CGI!
uri@fastengines.com                                  http://www.fastengines.com


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

Date: Wed, 23 Sep 1998 15:49:32 -0400
From: John Porter <jdporter@min.net>
Subject: Re: Poll: How Did You Learn Perl?
Message-Id: <360950CC.182CAD02@min.net>

Rich Grise wrote:
> 
> Primarily, by plowing through Matt Wright's counter and wwwboard.

Ho crow!  This is absolutely horrifying.

-- 
John "Many Jars" Porter


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

Date: Wed, 23 Sep 1998 19:49:41 GMT
From: tnguru@termnetinc.com (Ben Coleman)
Subject: Re: Poll: How Did You Learn Perl?
Message-Id: <36095049.189519644@news.mindspring.com>

On Wed, 23 Sep 1998 12:38:04 -0400, John Porter <jdporter@min.net> wrote:

>So here's a poll for everyone.
>
>From what resource(s) did you learn Perl?
>


 . Llama v.1
X Llama v.2
 . Camel v.1
X Camel v.2
 . Other book (give name)
 . Docs included in the distribution
 . Something on the WWW
 . Studying existing code
 . Class/tutor


Ben
-- 
Ben Coleman
Senior Systems Analyst
TermNet Merchant Services, Inc.
Atlanta, GA


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

Date: Wed, 23 Sep 1998 15:02:52 -0400
From: dragons@scescape.net (Matthew Bafford)
Subject: Re: problem retreiving cookie
Message-Id: <MPG.10730fd1e6d631409896b4@news.south-carolina.net>

In article <36093F4F.1523@entheosengineering.com> on Wed, 23 Sep 
1998 13:34:55 -0500, Rich Grise 
(richgrise@entheosengineering.com) pounded in the following text:
=> Guillaume Buat-Menard wrote:
=> 
=> Well, I don't know if this is right or not, but try $ENV{'HTTP_COOKIE'}
=> 
=> (note single quotes ``'")
=> 
Nope:

>From perldata:

As in some shells, you can put curly brackets around the name to
delimit it from following alphanumerics.  In fact, an identifier
within such curlies is forced to be a string, as is any single
identifier within a hash subscript.  Our earlier example,

    $days{'Feb'}

can be written as

    $days{Feb}

and the quotes will be assumed automatically.  But anything more 
complicated in the subscript will be interpreted as an 
expression.


HTH,
--Matthew


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

Date: Wed, 23 Sep 1998 12:08:52 -0700
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: problem retreiving cookie
Message-Id: <MPG.1072e720b84cb4c39897b4@nntp.hpl.hp.com>

[Posted to comp.lang.perl.misc and a copy mailed.]

In article <36093F4F.1523@entheosengineering.com> on Wed, 23 Sep 1998 
13:34:55 -0500, Rich Grise <richgrise@entheosengineering.com> says...
> Guillaume Buat-Menard wrote:
 ...
> > ... $ENV{HTTP_COOKIE}
 ...
> Well, I don't know if this is right or not, but try $ENV{'HTTP_COOKIE'}
> 
> (note single quotes ``'")

Did you try both forms?  If so, what difference did you find?  If not,  
why waste bandwidth here by posting your conjectures?

-- 
(Just Another Larry) Rosler
Hewlett-Packard Laboratories
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com


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

Date: Wed, 23 Sep 1998 14:08:29 -0500
From: Rich Grise <richgrise@entheosengineering.com>
To: John Porter <jdporter@min.net>
Subject: Re: Q: Picking an element from a hash (not knowing which!) [Zorn's lemma?]
Message-Id: <3609472D.3087@entheosengineering.com>

John Porter wrote:
> 
> Tad McClellan wrote:
> >
> >    push @a, (keys %h)[0] if @a == 0;
> 
> @a or @a = ( (each %ENV)[0] );
> 
> --
> John "Many Jars" Porter

Nothing personal, but is this a contest to see who can write
the most cryptic, incomprehensible code?

One time, I saw a solution for "The Towers of Hanoi" in
one line of APL.

Geez!
-- 
Rich Grise
richgrise@entheosengineering.com
(No need to futz with my e-mail: I have a "Delete" button!)


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

Date: Wed, 23 Sep 1998 16:02:02 -0400
From: John Porter <jdporter@min.net>
Subject: Re: Q: Picking an element from a hash (not knowing which!) [Zorn's lemma?]
Message-Id: <360953BA.5994DC18@min.net>

Rich Grise wrote:
> 
> Nothing personal, but is this a contest to see who can write
> the most cryptic, incomprehensible code?

Contest, yes.

Cryptic? Incomprehensible?  Nah.  ;-)

Do you know what  each %h  returns?
And what  (each %h)[0]  must therefore be?

-- 
John "Many Jars" Porter


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

Date: Wed, 23 Sep 1998 14:12:36 -0500
From: Tk Soh <r28629@email.sps.mot.com>
Subject: Re: question about variable interpolation in search pattern
Message-Id: <36094824.5D16B43F@email.sps.mot.com>

Richard Ann wrote:
> $foo = 'there';
> $template_line = 'hello $foo';

No variable interpolation is done for single-quoted string. To get
'hello there', use double-quotes:
	
	$template_line = "hello $foo";

TK :)


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

Date: 23 Sep 1998 19:21:05 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: Regular Expression Beautifier
Message-Id: <6ubhn1$lti$1@mathserv.mps.ohio-state.edu>

[A complimentary Cc of this posting was sent to Daniel Grisinger 
<dgris@rand.dimensional.com>],
who wrote in article <6ubc2r$aat$1@rand.dimensional.com>:
> regdecl is a regular expression beautifier that
> accepts a regular expression as input and generates
> a formatted, commented, regular expression as output.
> 
> For example-
> 
> '(?:(?:as?)\t+.+(?:ooga(?!booga)|flim(?=flam)
>  (walla-walla))((?<!asdf)q*?(?<=t)(?:rv+)*last
>  (?#this is a comment)asdf{5,93}[q-u](?:\t
>  \n\r\f+\a?))\basd\Bqq(?is:asdgf))'
> 
> becomes
> 
> (?:                 # Start non-capturing group 
>   (?:                 # Start non-capturing group 
>     a                   # The literal string `a' 
>     s?                  # The literal string `s'  0 or 1 time 
>   )                   # End group 

I think CPerl does much better (without extra bloat and unneeded
comments). - Except the embedded comments, need to be fixed.

m(
   (?:
     (?:
       a s?
     )
     \t+ .+ 
     (?:
       ooga 
       (?!
        booga
       )
     |
       flim 
       (?=
        flam
       )
       (
        walla - walla
       )
     )
     (
       (?<!
        asdf
       )
       q*? 
       (?<=
        t
       )
       (?:
        r v+
       )*
       last 
       (?#
        this \  is \  a \  comment
       )
       asd f{5,93} [q-u] 
       (?:
        \t \n \r \f+ \a?
       )
     )
     \b asd \B qq 
     (?
       is : asdgf
     )
   )
 )x

Ilya


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

Date: Wed, 23 Sep 1998 19:08:23 GMT
From: hex@voicenet.com (Matt Knecht)
Subject: Re: Simple, efficient way of checking whether $VAR is an element of set @LIST ?
Message-Id: <HGbO1.612$XP2.5184360@news3.voicenet.com>

Rich Grise <richgrise@entheosengineering.com> wrote:
>OK, stupid question number infinity minus 1:

Which is still infinite. :)

>does exists() work on just a plain array?

Nope.

>Or is grep the right answer for that?

It depends.

I've found that grep works really nicely if you don't care about the
performance hit.  I often use it for readability's sake when I'm sure
I'll only be looking for something once.  I'd never put it in a loop, or
any place where it's going to be called many times, or use it on an
array that might be large.

The fast way:
my $item;
for (@array) { $item = $_, last if $_ eq 'something' }

The easy way:
($item) = grep { $_ eq 'something'} @array;

The conclusion:
print "Found $item in \@array\n" if $item;

IMHO, the grep line is a lot easier to read, but takes the speed penalty
of checking the entire array, even after a match has been found.  If you
need to know how many times $item appears in an array, grep is the way
to go.

And, of course, the best advice: Shouldn't you be doing this in a hash
if you're searching for something? (This doesn't always apply, though).

-- 
Matt Knecht - <hex@voicenet.com>


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

Date: Wed, 23 Sep 1998 12:05:31 -0700
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: Simple, efficient way of checking whether $VAR is an element of set @LIST ?
Message-Id: <MPG.1072e6511939cffd9897b3@nntp.hpl.hp.com>

[Posted to comp.lang.perl.misc and a copy mailed.]

In article <36093C5A.79D3@entheosengineering.com> on Wed, 23 Sep 1998 
13:22:18 -0500, Rich Grise <richgrise@entheosengineering.com> says...
> OK, stupid question number infinity minus 1:
> 
> does exists() work on just a plain array?
> Or is grep the right answer for that?
 ...
> Thanks, and forgive my laziness for asking rather than plowing through
> all the real docs.

Is it better that each of us should do your work for you?  Especially 
when it has already been done...

perlfaq4:  "How can I tell whether an array contains a certain element?"

-- 
(Just Another Larry) Rosler
Hewlett-Packard Laboratories
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com


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

Date: Wed, 23 Sep 1998 12:10:02 -0700
From: Yogish Baliga <baliga@synopsys.com>
To: ff@creative.net
Subject: Re: undefined value as ARRAY reference
Message-Id: <3609478A.B7DB1345@synopsys.com>

Hi,

    You are trying to use the undefined variable/object in the statement,
                  my @range = @$r;

    Good Luck,
Baliga



Farhad Farzaneh wrote:

> Hello,
>
> I have some code that includes (modified for testing):
>
>             my $r = $rField->range;  # a method of object instance $rField
>             print "Undefined\n" if ( !defined($r));
>             my @range = @$r;
>
> and which does print the "Undefined".  It chokes on the last line with the
> following error:
>
> # Can't use an undefined value as an ARRAY reference.
>
> However, when I try to build a short script to test this, I never get this
> error.  I'm not sure why this error occurrs in one case and not in another.
> Is it because I'm using an object in the former case??  That doesn't make any
> sense to me...
>
> Here's the test script:
>
> #!/bin/perl
>
> my $f;  # keep this undefined
> print "Undefined\n" if ( !defined($f));
> my @r = @$f;
>
> # Now play with unsing returns from undefined subroutines
> print "foo = ",&foo,"\n";
> print @{&foo};
> print %{&foo};
>
> sub foo {
>     return;
> }
>
> Thanks in advance.
>
> Farhad Farzaneh





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

Date: 12 Jul 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Special: Digest Administrivia (Last modified: 12 Mar 98)
Message-Id: <null>


Administrivia:

Special notice: in a few days, the new group comp.lang.perl.moderated
should be formed. I would rather not support two different groups, and I
know of no other plans to create a digested moderated group. This leaves
me with two options: 1) keep on with this group 2) change to the
moderated one.

If you have opinions on this, send them to
perl-users-request@ruby.oce.orst.edu. 


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

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