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

Channels


#perl

30 October 2007


Total 29 pages. You are browsing page 4/29.

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

01:45 <****> tias
01:45 <****> oh, copy
01:45 <****> I missed that part
01:45 <****> Ah, neato. I didn't know Perl could do globs so easily.
01:46 <****> Perl does a lot of things very easily. It's a good reason why professional perl coders walk around with silly grins on their faces.
01:46 <****> (kinda paraphrasing the Camel book there)
01:46 <****> Caelum: the upload script is using CGI qw/:standard/; on IIS... any ideas on how to access the temporary file name?
01:46 <****> mauke: What's the sprintf for? Just for verbosity's sake?
01:47 <****> JordiGH: padding with 0's
01:48 <****> Oh, of course.
01:48 <****> I'll need to do this to more times for the ranges 500-750 and 750-1000. :-)
01:48 <****> tobor_: read about uploading in the CGI doc
01:49 <****> Hello, i was reading about references and suddenly they name something called "typeglobs". I've read about it, but still don't get what is it? please could some explain me? thanks
01:49 <****> Neato. Perl uses the same format strings as C. I think I'm allowed to be mildly impressed here. :-)
01:50 <****> ?
01:50 <****> Zoffix: bingo
01:50 <****> \o/
01:50 <****> /o\
01:50 <****> JordiGH: a superset, actually. see perldoc -f sprintf for details
01:51 <****> mauke: And is the missing operand on sprintf $_?
01:51 <****> there's a missing operand?
01:51 <****> where?
01:51 <****> JordiGH, no, the expressions is: $n = sprintf "foo%04d.jpg", $1 + 250;
01:51 <****> Oh, right.
01:51 <****> No parentheses.
01:51 <****> JordiGH, it's just you can omit the ( );
01:51 <****> Yeah.
01:51 <****> $1 is what just matched.
01:56 <****> nobody?
01:56 <****> JoelR: do you know what a package is?
01:57 <****> mauke: i have a certain idea.. but not exactly
01:57 <****> "package" is perl's word for "namespace"
01:58 <****> every namespace contains symbols, also known as typeglobs
01:58 <****> i am reading o reilly intermediate perl, and packages chapter comes after.. but they are now talking about references to file handles and then they talk there aboyt those "typeglobs" that i can't understand what they are
01:58 <****> JoelR http://www1.istockphoto.com/file_thumbview_approve/3040076/2/istockphoto_3040076_package.jpg
01:58 <****> bp31416's url is at http://xrl.us/7twv
01:58 <****> a typeglob is a symbol table entry
01:58 <****> cool, perl and catalyst is only about 55 megs
01:59 <****> global (package) variables are part of typeglobs, which live in the symbol table
01:59 <****> e.g. sub foo {} places a code reference in the CODE slot of the typeglob *foo
02:00 <****> and when you say print STDERR $something the STDERR really refers to the IO slot of the *STDERR typeglob
02:00 <****> JoelR When used in this manner, the asterisk is also known as a typeglob. The asterisk at the beginning of a term can be thought of as a wildcard match for all the mangled names generated internally by Perl.
02:00 <****> "mangled names"?
02:01 <****> mauke: Thank you. Your example was quite instructional. :-)
02:01 <****> ehh
02:02 <****> (not to mention useful and got the job done.)
02:02 <****> JoelR is a wildcard to represent a global-naming-scheme, myducks, mycats, my*s will be a typeglob sorta-speak
02:03 <****> what?
02:03 <****> that doesn't make sense
02:03 <****> I think my semantics is not-great, but the analogy is decent heeh
02:03 * bp31416 puts on a hardhat
02:03 <****> analogy?
02:05 * Zoffix mentions something about bp31416 trying to explain typeglob as if it's an asterisk in the glob("foo*") and leaves to watch a movie
02:05 <****> oh
02:06 <****> no, typeglobs aren't really related to shell globs
02:06 <****> ....
02:06 <****> right
02:06 <****> a * will be about the quick-dirty way to @EXPORT something
02:07 <****> though.. well, I tried to put it in layman terminology.... sorta, so much for that one ^_^
02:15 <****> what's the perl equiv to these unix commands "cp orig-file dest-file" and "cp -r orig-dir dest-dir"
02:15 <****> system "cp ...";
02:15 <****> or File::Copy
02:16 <****> thx
02:32 <****> In case anyone was wondering, this is what I was up to. Fractal! http://sums.math.mcgill.ca/~jordi/movies/fractal2.avi
02:39 <****> neat, jordi.
02:39 * jagerman wonders why he receives >3000 mpeg errors from it
02:39 <****> All right at the end.
02:39 <****> Oh well, cool nonetheless.
02:39 <****> jagerman: Incomplete file. :-/
02:40 <****> Ah, that'd do it.
02:40 <****> jagerman: I don't know how to resume an scp transfer. I don't think it's possible.
02:40 <****> Uploading those almost-16 megs took 15 minutes.
02:41 * CPAN upload: Test-Harness-2.99_05 (+++++) by ANDYA
02:42 <****> is there a tool that will monitor all the webpages I visit and it will save specific text/links/files?
02:42 <****> the problem is that most of similar programs require you to enter a starting web address, then specify retrieval options and then let the program do the job
02:42 <****> I want an integrated solution to do this within my browser "as I browse"
02:43 <****> Write a Firefox extension?
02:44 <****> keedr: you can always just use a proxy that does that, but what this has to do with #perl is a bit beyond me
02:45 <****> JordiGH2, Nice assumption of the user's browser.
02:45 <****> apeiron: More of a recommendation.
02:47 <****> keedr: there are dozens of extensions for that kind of stuff, I use the del.icio.us plugin for firefox
02:47 <****> keedr: it seems you're inventing bookmarks
02:48 <****> keedr: http://del.icio.us/help/firefox/extensionnew
02:49 <****> dondelelcaro: hey
02:49 <****> Personal web proxies are often so awkward.
02:49 * dwu awks at dngor's personal web proxy. Fnarrfnarr.
02:49 <****> keedr: don't forget that Google is tracking all your infoz.
02:49 <****> awks?
02:50 <****> im in ur browza tracking ur pr0n
02:50 <****> So he sed.
02:51 <****> DSterling: Speaking of google trackins... http://xrl.us/7txw ;)
02:51 <****> guys, tell me what you think of this. someone made a getRandomInt() in infobot. Someone also decided to use that very sub for the scheduler. heres a sample for the "X-Y" version: return ($2-$1)*int(rand $1)*60; Now someone please tell me what 0 times anything is plz?
02:51 <****> NaN
02:51 <****> :-)
02:52 * jagerman gives troubled http://xkcd.com/221/
02:52 * Somni eyes mauke
02:52 <****> im guessin that they threw in a *60 to make it seconds, but hmmm, funny if I didnt think that "getRandomInt" wasnt designed to only return a "random" "integer"
02:52 <****> someone kill me now lol
02:52 <****> rofl
02:53 <****> jagerman: tyvm, that make me feel much better


Total 29 pages. You are browsing page 4/29.

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


Tutti i nuovi CAP Italiani. Come ottenere il database completo