Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: How's your Perl? (II)

by ccn (Vicar)
on Jul 21, 2004 at 21:42 UTC ( [id://376390]=note: print w/replies, xml ) Need Help??


in reply to How's your Perl? (II)

13-th (xmath says that this is a cheat)
use subs 'and';sub and :lvalue {$_};

9-th
$foo="\n0";$*++;

7-th
*foo = \1;

6-th
sub f{\@_}; *foo = f($_,$_);

2-d
*foo=\pos;

1-st
$foo = *_;

Update: 2-nd and 9-th added

Update: 10-th REMOVED, because it use the same method as 9-th

Replies are listed 'Best First'.
Re^2: How's your Perl? (II)
by xmath (Hermit) on Jul 21, 2004 at 21:44 UTC
    13-th: Heh, clever, but it doesn't actually make the predicate true, it just makes the example method of checking your solution work.

    Update: and subs.pm is a module ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://376390]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-19 04:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found