Home Page   #c  #ruby-lang  #cisco  #mysql  #apache  #javascript  #java  #perl  #php  #openmoko   Wallpapers Girl
Reliable $1 Web Hosting by 3iX

Channels


#perl

03 October 2007


Total 41 pages. You are browsing page 1/41.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last

--- Log opened Wed Oct 03 00:00:07 2007
--- Day changed Wed Oct 03 2007
00:00 <****> kll, I'll take another look at it, maybe with more escaping but single quotes didn't really help, either, on my first try.
00:00 <****> is there any way to do an operation only for the first iteration of a loop without using counters?
00:00 <****> MyNameIsRetro: hence suggesting IPC::Open2
00:00 <****> kojiro: which kind of loop
00:01 <****> for my $el (@array), fxn
00:02 <****> mst, googling that, thanks.
00:02 <****> kojiro: no builtin way to distinguish the first iteration
00:02 <****> ok, thanks
00:04 <****> Hi, just want to say thanks to everyone who helped me earlier, I've got my script behaving now, after much headache.
00:04 <****> :-)
00:08 <****> what's the simplest way to generate $n number of " "s?
00:08 <****> " " x $n
00:09 <****> thanks
00:20 <****> anyone here familiar with IPC::Run? I'm having trouble getting it to work when I add args like "-g abc" to @cmd
00:22 <****> Hi - how can one get the full path of the perl script being executed, in a variable?
00:22 <****> (Is there a way in fact?)
00:23 <****> $0
00:23 <****> Not quite, cf FindBin
00:23 <****> I'm asking because I need to make a program with many modules, that the user can install anywhere and run while being in any directory - the main script needs to know where the modules are located.
00:24 <****> $0 just contains the script name, not the path
00:24 <****> punter, Take a look at the SYNOPSIS for FindBin
00:24 <****> Shows you *exactly* what you want.
00:24 <****> is findbin a perl module?
00:25 <****> flakrat: you probably need "-g", "abc" instead
00:25 <****> thanks
00:25 <****> core: FindBin
00:25 <****> Caelum: Added to perl core as of 5.00307
00:25 <****> punter, 't is, yes.
00:25 <****> Caelum, good point, I'll try that
00:25 <****> flakrat: aye, but that's what you start with
00:25 <****> dondelelcaro, that's true
00:26 <****> FindBin is a much better answer though. ;-)
00:26 <****> thanks very much. i'm going away now to read all about it.
00:35 <****> Caelum, well, that got the script past the error, unfortunately it doesn't look like the command is formatted correct when passed to the system, but I think this got me headed in the right direction
00:38 <****> thanks
00:42 <****> I take that back, it looks like it is working just fine, I just have a division bug further on in the script, thanks
00:42 <****> Has anyone else noticed perl is an anagram of lerp?
00:43 <****> no repl
00:43 <****> close to lisp
00:43 <****> no it isn't. It's an anagram of elpr
00:43 <****> bpalmer: you need to open your mind, man.
00:44 * bobf gives bpalmer a cat.
00:45 <****> GumbyBRAIN: lerp
00:45 <****> 450 000 People can't pronounce the french. It's an anagram of lerp?
00:46 <****> qrck: which is why I called the Devel::REPL script re.pl :)
00:46 <****> eww
00:46 <****> lol
00:46 <****> anotherhit
00:48 <****> MST YOU FREAK.
00:50 <****> <- don'ts wants a snappy cat
00:50 <****> lol
00:51 <****> GumbyBRAIN, dongs
00:51 <****> Tempura dongs, obviously.
00:51 <****> ouch
00:52 <****> GumbyBRAIN: tumpura dongs
00:52 <****> It asks for hlagh and cocks and dongs and hlaghlg.
00:52 <****> Of course it does.
00:54 <****> err the wikipedia site link shows facade method both in fundamental and in behavioral how comes ?
00:54 <****> err facade pattern
00:55 <****> classification is loose i suppose
00:55 <****> hrmm...
00:55 <****> Your mom's loose?
00:55 * bobf shrugs.
00:56 <****> bobf: actually yes ! happy now ?
00:56 <****> or shall i give you the documents of the doctor ?
00:56 <****> lol
00:57 <****> qrck: I guess "fundamental" means "core" whereas "behavioural" is a type
00:58 <****> mst: i somehow get what you mean, it's that it's both which confuses me...not with other ones listed there...as far as i could see
00:59 <****> Hehehe.
01:00 <****> oh found another one now...composite too
01:01 <****> How to roll a joint with a cat upon my arm.
01:01 <****> do a hanoi move
01:01 <****> lol
01:01 <****> Hanoi move?
01:01 <****> you know the algo lol
01:04 <****> The bigger problem is that I can't find my pot or Rizlas and my cat's not helping me look for them.
01:06 <****> GumbyBRAIN: all religion is flawed in the supremecy of TIME CUBE
01:06 <****> Zoffix is from the cube.
01:06 <****> GumbyBRAIN, STFU
01:06 <****> Are we talking about their /ignore commands. It's called stfu.
01:06 <****> GumbyBRAIN: invoke the popwer brain.
01:06 <****> Oh, my spelling sucks. Which page needs to access the db, and invoke it in the brain.
01:12 <****> GumbyBRAIN: bistromathics
01:13 <****> Http://search.cpan.org/~whizdog/gdgraph-histogram-1.1/number.pm.
01:13 <****> o_O
01:14 <****> Has there even been any development on WWW::Shorten in the last 2 years?
01:16 <****> well
01:16 <****> I think the developer passed away... actually, I know he did, but I am not sure if anyone else picked it up
01:17 <****> Anonycat: I think the test failures are because perl.dellah.org no longer exists
01:37 <****> how do you print hidden / control characters that are stored in a variable? I'm trying to debug a pattern match and I think the var has something hidden in it
01:38 <****> print unpack "H*", $string; :)
01:41 <****> Khisanth, haha, that certainly prints everything :-)
01:43 <****> flakrat: go through the value a byte/character at a time (depending how you think it's "hidden")
01:43 <****> perldoc bytes may be useful
01:44 <****> Khisanth, well, even though the output was all in hex, I can see that there are only spaces seperating the fields, 202020, I guess my regex is wrong
01:44 <****> bpalmer, thanks looking that up now
02:02 <****> hmm. i have $s="a xxxx b annallrrr b" and $s =~ m/a.*?b/; then i should get "a xxxx b" but i get the whole string. ??!
02:04 <****> nollan: get the whole string where?


Total 41 pages. You are browsing page 1/41.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last


Tutti i nuovi CAP Italiani. Come ottenere il database completo