Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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

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
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 chilling in the Monastery: (8)
As of 2016-06-30 23:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (405 votes). Check out past polls.