Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 scrutinizing the Monastery: (7)
As of 2015-07-03 06:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (48 votes), past polls