Beefy Boxes and Bandwidth Generously Provided by pair Networks httptech
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^5: P2P Golf: MoleSter

by blazar (Canon)
on Dec 21, 2004 at 09:39 UTC ( [id://416484]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re^4: P2P Golf: MoleSter
in thread P2P Golf: MoleSter

>> You cannot use open F,pop; because there are 3 args coming in, not 2.

Huh?!?

The function in question is

sub g{ open(F,'<',$_[1])&&&s($_[0],$a,"e$_[1]",<F>); close F }

On first glance, it looks like you can replace $_1 with pop for a 2-character savings. However, look at where g() is called - &$3($2,$4,$'). There are three scalars in @_, not two. The fact that g() only uses two is irrelevant.

Again, in my OP it was implicit that one should change (if possible/convenient) the way subs are actually called... it was meant to be a very generic cmt.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://416484]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.