Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: MOPT-03 - identification, part 1

by adrianh (Chancellor)
on Dec 29, 2002 at 10:10 UTC ( #222900=note: print w/replies, xml ) Need Help??


in reply to Re: MOPT-03 - identification, part 1
in thread MOPT-03 - identification, part 1

'm just wondering - does this belong on a Perl site? Is Perlmonks turning into long-summaries-of-basic-programming-theory monks?

If it were just talking about programming theory in the abstract I might agree, but perl was used to illustrate specific examples - so I say it belongs here.

The theory may not interest you, but it does interest me (and judging by the node rep quite a few others too). I'm finding it an interesting refresher on stuff I learned many years ago when I was at university - and doing it in the context of perl is an interesting twist.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://222900]
help
Chatterbox?
[Lady_Aleena]: Sanity check please? push @line, ref($list_addition ) eq 'ARRAY' ? @$list_addition : $list_addiction; # so I don't have the change existing uses of the sub.
[shmem]: $list_addiction should be $list_addition
Discipulus loose the tozzetto party!
[shmem]: .oO( addition of cookies for addiction to cookies )
[Lady_Aleena]: Other than my typos shmem. 8)
[shmem]: otherwise fine
[Discipulus]: tozzetti & vinsanto
[Lady_Aleena]: The whole line is push @line, ref($list_addition ) ? @$list_addition : $list_addition if $list_addition;
[Lady_Aleena]: And I forgot to do the array check, I'm such a doofus today.
[Lady_Aleena]: push @line, ref($list_addition ) eq 'ARRAY' ? @$list_addition : $list_addition if $list_addition; #trying again

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2017-04-27 11:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (503 votes). Check out past polls.