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

Re: How's your Perl? (II)

by ccn (Vicar)
on Jul 21, 2004 at 21:42 UTC ( #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


Comment on Re: How's your Perl? (II)
Select or Download Code
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
Node Status?
node history
Node Type: note [id://376390]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (12)
As of 2014-10-20 08:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (74 votes), past polls