Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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?
[Lotus1]: damn, I just opened the attacment on a phishing simulation email in the $work email
[Lotus1]: now I'll be sent to re-education camp or something
[stevieb]: relocate Lotus1 to the brig, straight away!
[erix]: let's do an education simulation
[stevieb]: You could just play dumb... "huh? There was no mention of 'fishing' in the email!"
[erix]: you could say you were part of the simulation

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (14)
As of 2017-05-24 13:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?