You have a string in $_ and you want to get a list of the characters in it. You decide to use @chars = split //, but then your friend (who happens to like regexes a lot) advertises the code @chars = /./gs stating that it works the same way as the other code. You run it on all the possible strings you can come up with, and indeed, it returns the exact same value. But you can't help but thinking it does something different. What is it? Please keep answers encoded, whether it be via ROT-13 or font coloring.
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: (Quiz) To split, or not to split?
by chipmunk (Parson) on Nov 05, 2001 at 08:12 UTC | |
Re: (Quiz) To split, or not to split?
by blakem (Monsignor) on Nov 05, 2001 at 08:18 UTC | |
Re: (Quiz) To split, or not to split?
by japhy (Canon) on Nov 05, 2001 at 09:06 UTC | |
by Sweeper (Pilgrim) on Nov 06, 2001 at 11:35 UTC | |
Re: (Quiz) To split, or not to split?
by dws (Chancellor) on Nov 05, 2001 at 08:29 UTC |
Back to
Meditations