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 2/29.

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

00:26 <****> define fork-related.
00:27 * CPAN upload: Astro-NED-Query-0.20 by DJERIUS
00:27 <****> not sure, i seem to have problems writing to files when i'm doing it from a forked child
00:27 <****> every process has been forked, with the possible exception of init
00:28 <****> im having a problem with a simple perl script i wrote which is located here: http://rafb.net/p/tPnkTG45.html it executes fine from the command line and the task is completed, however when i try to run the task from cron, it says it got completed, but there are no results
00:28 <****> any help would be appreciated
00:28 <****> anno-: Actually, it's quite interesting to take a kernel, like Linux, and read how it bootstraps init into being...
00:29 <****> 1) adj. Of or related to tine-based eating utensils. 2) n. A native of Western Canada, particularly in overalls or near a moose.
00:29 <****> Well.. interesting, for some definition
00:30 <****> tanya42: compare the environments
00:31 <****> anno: gotcha, ill check
00:31 <****> cron problems are almost always environment-related
00:34 <****> awesome, thanks anno, you rock
00:36 <****> is "$foo =~ /(regex+)/; $foo = $1;" the only legal way to untaint user input? is there a legal way to untaint similar to "$foo =~ s/(regex)//g" ?
00:38 <****> hmmz.. what could cause my script to get a "No such file or directory while printing to ..file" then..? i cant seem to crack this crazy nut
00:38 <****> A perl -p script perhaps?
00:38 <****> argh, I always forget to delete the Policy.sh when rebuilding perl
00:43 <****> funny.. all files i write from that script is exactly 14747 bytes
00:44 <****> then it dies saying the file doesnt exist
00:44 <****> :(
00:45 <****> :)
00:48 <****> }:)
00:53 <****> on the fly.. now it works all of the suddon.. but if i save it to an array meanwhile.. nooo..
00:54 <****> i'll go hang myself in a tie now :)
00:57 * CPAN upload: Module-CPANTS-ProcessCPAN-0.71 by DOMM
00:57 * CPAN upload: Module-CPANTS-Site-0.71 by DOMM
00:57 * CPAN upload: HTML-Element-Tiny-0.004 by HDP
01:00 <****> hi there
01:02 <****> is there a way to use regular expressions by using objects or functions instead of the operators?
01:02 <****> yes
01:02 <****> sub match { $_[0] =~ /$_[1]/ }
01:02 <****> if (match "foo", qr/bar/) {...
01:03 <****> ...
01:03 <****> are you serious?
01:03 <****> why not
01:03 <****> are you?
01:03 <****> mauke doesn't joke.
01:03 <****> hah
01:03 <****> hi there. I try to POST DATA to this webpage : http://www.easy-upload.net with my script : http://rafb.net/p/eJ47OP16.html but I have the following error : Can't locate object method "POST" via package "http://www.easy-upload.net/" (perhaps you forgot to load "http://www.easy-upload.net/"?) at post-data-6.pl line 9. any idea ?
01:04 <****> you are callling a class method on a url.
01:04 <****>post($url, ....)
01:05 <****> if you can rewrite the script, it would be very nice :)
01:05 <****> ehm ... no.
01:05 <****> :)
01:05 <****> YOU rewrite it, it's your script
01:05 <****>post and drop the POST
01:05 <****> sputnick: how about you rewrite the script?
01:06 <****> :D
01:06 <****> mauke: so there's no built-in function that is equivalent to the regex stuff? I have to write it myself everytime I want to use something like that?
01:06 <****> I rewrite it
01:06 <****> optikalmouse: why do you need a function?
01:07 <****> they're built-in operations so you *don't* have to use a function
01:07 <****> that's a good question.
01:07 <****> built-in functions are operators.
01:08 <****> er? really?
01:08 <****> mauke: it's the other way around you mean.
01:08 <****> why do you care whether the operator is called =~ or match?
01:08 <****>match("foobar")
01:08 <****> Botje: ''ERROR: 15957: Can't locate object method "match" via package "Regexp" at (eval 238) line 1.
01:08 <****> optikalmouse: I don't think so
01:08 <****> readability's sake.
01:08 <****>match("foobar")
01:08 <****> Botje: 1
01:08 <****> look!
01:08 <****> eval: keys %Regexp::
01:08 <****> mauke: 1
01:09 <****> no icky operators!
01:09 <****> eval: [keys %Regexp::]
01:09 <****> mauke: ['DESTROY']
01:09 <****> optikalmouse: =~ is more readable
01:09 <****> execute($ano,$mes,$ptoAmostragemID,$tipo)
01:09 <****>errstr; } ?
01:09 <****> optikalmouse: readability is not trying to morph a language into your concept of what it should look like
01:09 <****> Insolit: you can't use ; in hash ref constructors
01:10 <****> Somni: how come? :(
01:10 <****> Insolit: perldoc -f do
01:10 <****> perldoc -f unless
01:10 <****> optikalmouse: because you are writing for other programmers, as well, and they expect to see Perl, not Pythonesque Perl with a lot of useless constructs to make you feel better
01:10 <****> mauke: so i must delete the ";" ?
01:10 <****> ok, so it's in perlsyn
01:11 <****> ;)
01:11 <****> Insolit: yes, if you want a different syntax error
01:11 <****> lol
01:11 <****>execute(...) ) { ...; } else { ...; }
01:11 <****> Jmaxx: ok thanks
01:14 <****> is this one better ? http://rafb.net/p/Yv4ejI26.html It's give the following error : Can't call method "post" on an undefined value at post-data-6.pl line 10.
01:14 <****> wtf?
01:14 <****>post supposed to do?
01:17 <****> Somni: yeah I guess I'll stick to Python after I'm done with this Perl web programming course :P
01:17 <****> hmm
01:18 <****> that's pretty crazy.
01:18 <****> optikalmouse: lovely
01:18 <****> hahahahaha... yay Python
01:18 <****> I feel like I should learn it to see what all the fuss is about
01:18 <****> jawnsy: it's about readability and using 'del' instead of 'delete'
01:18 <****> not too much fuss about it actually
01:18 <****>
01:18 <****> well nothing to fuss about, two languages...
01:18 <****> the fuss is all about Ruby now.
01:19 <****> so you might want to try that out if you're into following the fuss


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

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


Tutti i nuovi CAP Italiani. Come ottenere il database completo