| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Comments:
<0> err, with perl... <1> nmap even outputs xml. <2> integral: nmap *may* output evil xml <2> _tcc: install and use nmap :) <3> nmap is a fine example of feature creep <1> it can also output "greppable" <2> _tcc: there may even be an nmap-like module on cpan <4> Is there a way to add to the front of a list inside a loop such that the loop begins at the front of the list again? ***ume that I already have the code which prevents it from going into an infinite loop. <2> sg47: yes. <2> sg47: you want an array of fixed size?
<4> nope <1> while(shift) maybe, or goto, or use indices maybe <4> I have @list = (1,2,3,4,5) <5> love <2> sg47: unshift is the complement to push in that it operates on the front of the array rather than the rear <3> mmmm slice <4> for $x (@arr) { unshift @arr,qw(a b); print $x, "\n"; } <6> /me laughs. So it seems the gl*** elevator in the NY Apple store broke and trapped some customers. Someone comments, <4> Prints: 1 b 1 <7> that sorted it guys, thanks <6> "Was David Blaine in there?" <4> PerlJam, yes I know about unshift <8> integral: thanks. from examination, it appears they really are pretty much the same thing, and the Win32::OLE docs ref 'em interchangeably <4> but the array index has already advanced to index 1 <8> integral: "The _Unique options guarantees that Win32::OLE will maintain a one-to-one mapping between Win32::OLE objects and the native COM/OLE objects" for example <1> ah <8> integral: or. COINIT_OLEINITIALIZE is sometimes needed when an OLE object uses additional OLE compound document technologies not available from the normal COM subsystem <1> it's all icky dynamic casting anyway :-( <8> integral: looks like COM is just sorta the layer that accreted around OLE :) <8> integral: and the perl API handles it all <1> that's a beautiful word for it <2> sg47: I have no idea what you're getting at, but splice() is the general solution :) <1> PerlJam: no, his problem is he;'s modifying the array he's looping over <1> he needs something that'll frob the loop as well as modify the array <8> now I wonder if I can use COM/OLE on a linux machine... <2> integral: oh, that's probably it. <1> personally I like while(shift){} for that, sg47. Do you need the array to be unmodified? <1> Do you do things in the loop after the unshift? If not, you can use for + goto. <8> integral: http://www.rot13.org/~dpavlin/wine.html on that front... should you ever have to do that :) <1> *shudder* :) <4> hmm while (shift) {} seems a good idea <9> hi <1> ave! <9> anyone got a tool wich uses EU::Packlist for cleaning up all perl modules wherenot installed by a package manager on the system ? <10> !from
<10> oops - missed "esc" <11> hmmm... just a few people in here <12> Botje: it's a piece of cake :) thanks for pointin out $/ to me <1> hmm, yes, a quite evening <13> What returns $left = User; if($left eq "user")? <14> perlbot: url for EU::Packlist <15> Documentation for 'EU::Packlist' can be found here: http://snipurl.com/r6i8 <16> SRCR: no problem. hope you learned something today :) <14> hmm <17> eval: $left = "user"; return $left if $left eq "user"; <18> eggzeck: Return: user <17> Stormbreaker, get it? =) <13> eggzeck, got it. <19> ok, another question ;) if i have a string that has hex sequences like \xNN\xNN.. how can I base64 encode this? so, i need to convert that to a string and then use mime::base64? <13> eggzeck, I want to compare strings without capital differentitan <20> omfg. <20> Permission to copy and paste an article I don't own the rights too? <4> There are a bunch of constants that I need to use in my application. I'm planning to define them in a module and export them. What's the best way to do it such that it's easily maintained? <17> eval: $left = "User"; return $left if $left =~ /user/i; <18> eggzeck: Return: User <17> Stormbreaker, better? =) <20> Ruby, ruby, and & RUBY?! Ruby is a programming language. We talk about things like learning Ruby, and we ask questions like, Do you know Ruby? The lowercase version, ruby, is a computer program; specif-ically, its the Ruby interpreter, the program that reads your programs and runs them. Youll see this name used in sentences like, I ran ruby on my file, but nothing happened, or Whats the full path to your ruby e <20> but, RUBY and PERL are my favorite languages! <16> EvanCarroll: ah, a fellow RUBY lover! <20> horrah RUBY. <16> I heard RUBY is much better than PEARL <16> and PYTHON <8> never heard of this PEARL <20> python just ****s. <21> Run Unexpected Bul**** Yourself :) :) <16> i heard it has great REGEX support <16> does RUBY have REGEX support too? <4> Botje, I heard RUBY is much better than PEARL - does RUBY have REGEX support too? :-D <16> I hope so. REGEX support is quite vital for SCRIPTing languages nowadays. <22> wtf <23> hey, how can I get full arg after a get_opts (like -v "a b c d e") ? <22> swoke: I prefer GetoptLong personally <4> I intend to port optparse in Python to Perl <24> does anyone have an idea on how to search a directory tree for a particular file, i'm trying to use: File::Find::name , and i just don't seem to be getting it <20> Ruby's regex are more voodoolicious than perl's <23> eydaimon: Ok, anyway, but I can't get the full string after opts, like -v "hello eydaimon w***up ?" <23> See what I mean ?
Return to
#perl or Go to some related
logs:
#bash kidsonspeed #python mkdir a.dir+linux
dchroot Command not found cpp3.4 for ubuntu #fluxbox postfix virtual_alias_map example No catalog found at ERROR: No proposal needs to wee-wee
|
|