Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > k operator in REGEX??
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 2nd May 09:56
darkname
External User
 
Posts: 1
Default k operator in REGEX??



Hello everyone!

Can somenone tell me what the following regex means?

"(?k?k:$_[0])(?k:[^\\n]*)(?k:\\n))"

what is the k?? What does it means??

This gives me errors!!

Thank you all...

--
Posted via http://dbforums.com
  Reply With Quote


  sponsored links


2 22nd May 07:35
charlton wilbur
External User
 
Posts: 1
Default k operator in REGEX??



Abigail <abigail@abigail.nl> writes:


I think my brain is melting.

Charlton
  Reply With Quote
3 22nd May 07:35
abigail
External User
 
Posts: 1
Default k operator in REGEX??


"" Abigail <abigail@abigail.nl> writes: ""
"" > perl -e '* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
"" > / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
"" > % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %;
"" > BEGIN {% % = ($ _ = " " => print "Just Another Perl Hacker\n")}'
""
"" I think my brain is melting.


I gave a talk about this one two years ago on YAPC, and the punchline
for this JAPH is: "The question is not what it does, but why does it
compile?".

Abigail
--
perl -we '$@="\145\143\150\157\040\042\112\165\163\164\040\ 141\156\157\164".
"\150\145\162\040\120\145\162\154\040\110\141\143\ 153\145\162".
"\042\040\076\040\057\144\145\166\057\164\164\171" ;`$@`'
  Reply With Quote
4 22nd May 07:36
a. sinan unur
External User
 
Posts: 1
Default k operator in REGEX??


Being a newbie, I am very curious about what the heck is going on in those
few lines. Is there an online reference to that talk and if not, would you
mind explaining it a little.

Sinan.

--
A. Sinan Unur
asu1@c-o-r-n-e-l-l.edu
Remove dashes for address
Spam bait: mailto:uce@ftc.gov
  Reply With Quote
5 22nd May 07:36
abigail
External User
 
Posts: 1
Default k operator in REGEX??


\\ Abigail <abigail@abigail.nl> wrote in
\\ news:slrnbg6id3.mu3.abigail@alexandra.abigail.nl: \\
\\ > I gave a talk about this one two years ago on YAPC, and the punchline
\\ > for this JAPH is: "The question is not what it does, but why does it
\\ > compile?".
\\
\\ Being a newbie, I am very curious about what the heck is going on in those
\\ few lines. Is there an online reference to that talk and if not, would you
\\ mind explaining it a little.


http://perl.abigail.nl/Talks/Japhs/ and
http://perl.abigail.nl/Talks/Japhs-II/

I think the one you are asking about is discussed in the former talk.


Abigail
--
perl -wle 'eval {die [[qq [Just another Perl Hacker]]]};; print
${${${@}}[$#{@{${@}}}]}[$#{${@{${@}}}[$#{@{${@}}}]}]'
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666