Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How's your Perl? (II)

by xmath (Hermit)
on Jul 22, 2004 at 14:14 UTC ( #376580=note: print w/ replies, xml ) Need Help??


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

Official hints:

[all]There are two "wildcard solutions" that each can be used to solve nearly all of the exercises. Due to the no-reuse rule you can use each of them only once, and they're officially used for exercises 3 and 13.
[1-5]Just explore all kind of scalar references. If you're really desperate you can plow through Perl_sv_2pv_flags() in sv.c in the perl source code to see exactly how references get stringified.
[3]Good candidate for wildcard one: Find a way to override the meaning of the regex.
[4,8]The pattern of exercise 4 is misleading, but the search down this incorrect path may reveal the solution to exercise 8. Exercise 4 is actually simpler than you'd think.
[5]A fairly recent and unknown class of built-in objects.
[6]Alias. (Last year there was a similar one which could be solved by manipulating $[. I tried to prevent that this year, though initially without success)
[7]Make modification fail.
[8]Find something that fails to get assigned anywhere. See also hint about 4 and 8 above. The ability to acquire this thing at all is most likely a bug.
[9]Subtly perturb the meaning of the regex.
[10]Have $foo change as a result of the first part of the predicate test.
[11]Find a way to scribble onto $| so rudely it never gets properly turned into 0 or 1. This mechanism is most likely a bug.
[12]Find a variable that ignores being assigned to. This behaviour is most likely a bug.
[13]The best spot for wildcard two: A feature was added in 5.8 with which you can modify constants.


Comment on Re: How's your Perl? (II)
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2014-12-20 12:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls