#perl - Wed 7 Mar 2007 between 00:24 and 00:39



imMutemake sure you use {} on the right side
Aankhen``I am.
Hmm, one sec.
imMutehmm
fdupleximMute: how am I changing $_? i'm only doing a pattern match (m/) not a substitution
Aankhen``Oh, that was it.
I had an arrow between the deref and the slice.
imMutefduplex: 4) $^N ??? wtf?
Aankhen``As in @{ $hashref }->{'foo', 'bar'}
imMuteAankhen``: yeah {}{} != {}->{}
fdupleximMute: $^N contains the last value captured in paranthesis
Aankhen``At least not in this context.
imMutefduplex: no do this instead: sub foobar { my ($invar) = @_; $invar =~ /(.+)/; return $1; }
mmlj4f00li5h: last night or whatever you mentioned accidentally typing "rm -rf /" in the shell as root
fdupleximMute: yes I know I can use $1 and such, but there are reasons why I am using $^N, as a sort of named capture
imMutefduplex: why?
mmlj4i only type that on friends' machines
f00li5hmmlj4: yes
fdupleximMute: i'm trying to find some reference to $^N for you, but google isn't helping, it refuses to let me search for $^N properly
f00li5hmmlj4: it's more interesting to make your own user uid 0
fdupleximMute: there is a section though, in Mastering Regular Expressions, that references it
f00li5hmmlj4: so that everything on their box is being run by f00li5h
mmlj4anyhow, sleep &
f00li5hand the user called "root" is a normal user (uid > 1000)
fdupleximMute: basically, i'm matching with a regex that contains optional subexpressions, so numeric capture would result in missing matches
imMute: that would make it impossible for me to know where a certain captured part would be
simcop2387-tvGumbyBRAIN, LisaLaptop did not invent irish dancing
GumbyBRAINWe did have to invent new ones!
f00li5hfduplex: you could just match an empty string, so the capture cotnains ''
LisaLaptopGumbyBRAIN, When's the last time I had a fig newton?
GumbyBRAINI time my head wondering why it is in newton.
simcop2387-tvGumbyBRAIN, newton was alergic to figs! COKE AND PEPSI ARE THE SAME THING! WAKE UP PEOPLE!
GumbyBRAINHeh, in the wake of a thing, if you mean with that.
fduplexok $^N is actually documented in perlre. i'm basically trying to modify a variable directly from within my pattern
f00li5hif i'm wanting to bundle up my whole website, is there a way i can use Module::Starter or similar to package CGI scripts up nicely too?
i'm not sure how i'd go about it
simcop2387-tvf00li5h, dunno i'd just tarball it up unless its a framework type thing of sorts
actionLisaLaptop is wondering if simcop2387-tv got any of her messages
LisaLaptopis wondering if simcop2387-tv got any of her messages
f00li5hsimcop2387-tv: framework of sorts?
simcop2387-tvi'm guessing not because i sent you a bunch and didn't see any replies

Page: 4 11 18 25 32 39 46 53 60 67 74 

IrcArchive