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

Channels


#perl

26 October 2007


Total 31 pages. You are browsing page 31/31.

First :: Prev :: [...] [27] [28] [29] [30] [31] :: Next :: Last

23:48 <****> <3 oo perl
23:48 <****> <3 perl
23:48 <****> when it's written properly, at any rate
23:48 <****> perl will let you write horrible atrocious oo code that makes the baby jesus cry
23:49 <****> Like when it isn't an object for a single function call? :)
23:49 <****> Which baby jesus?
23:49 <****> it will also let you write magnificent beautiful oo.. it just doesn't force you to. which is also nice
23:49 <****> jagerman: the blue one
23:49 <****> <3 oo perl because The Damian wrote a lovely book on it...which is of course completely out of date now
23:49 <****> since we have things like Moose
23:49 <****>do_everything($all_parameters); # nothing else
23:49 <****> m00se
23:50 <****> bilbo1507: yup that's bad. also looks like the python way of doing things *cough*
23:50 <****> It's how most of CPAN seems to do the simplest tasks :/
23:50 * Caelum doesn't use objects when things...aren't objects
23:50 <****> caelum: never played with moose. looks interesting, but i've inherited a 50k line project that's written without it
23:50 <****> {chuckle} It's also sort of java'ish
23:50 <****> hhe
23:51 <****> very often exported subs are a much more elegant interface
23:51 <****> my $object = bless($nonobject, shift);
23:51 * anno- gently pats shaldannon's back
23:51 <****> one place I worked was talking about rewriting the Broadvision/JavaScript webapp in EJB/Weblogic... the quote was "use bean, make site"
23:51 <****> bilbo1507: kinda.. but java will let you just do it c-like and put everything in the main() func. python otoh seems to WANT you to make it that ugly way
23:52 <****> java still makes a class if you do that, iirc
23:52 <****> although there's been some noise about moving this project to java
23:52 <****> bilbo1507: yeah but it's more the design methodology that's different
23:53 <****> Hello, how can I have a script test two locations of the interpreter to use (i.e. /usr/bin/perl or /opt/prod/bin/perl)
23:53 <****> that doesn't make sense
23:53 <****> circular definition detected
23:53 <****> unless you mean 'which perl'
23:53 <****> smcavoy: Possibly: #!/usr/bin/env perl # however, this is not secure for suid
23:54 <****> smcavoy, You're going to have to start from somewhere besides perl to accomplish that.
23:54 <****> i.e., write a shell wrapper.
23:54 <****> #!`which perl` ;)
23:54 <****> !
23:54 <****> phurba, that's what mine does, actually
23:54 <****> does that work!?
23:54 <****> shaldannon: no
23:54 <****> shaldannon: no idea. i'd fear it if it did though
23:55 <****> it tries to exec '`which'
23:55 <****> aww
23:55 <****> can ya #!perl ?
23:55 <****> leave out the path?
23:55 <****> perlbot, tias
23:55 <****> Try It And See: the best way to learn if something works.
23:55 <****> I don't think so
23:55 <****> shaldannon: #!/usr/bin/env perl # however, this is not secure for suid
23:56 <****> shaldannon: I need to ensure uses either one or the other as some systems with /usr/bin/perl should not use it to execute the script
23:56 * initself puts on his jacket.
23:56 <****> bilbo1507's suggestion is the best way, but beware that it will change how your program looks in ps output
23:57 <****> smcavoy: it may be beneficial to write an installer if this is going to be deployed in a lot of places
23:57 <****> Caelum, it will? I thought env calls exec()
23:57 <****> or wrap it in a shell script for that matter
23:57 <****> bilbo1507: it changes it to "perl foo.pl" instead of "foo.pl" :)
23:58 <****> Caelum, but it's already "perl foo.pl" in both cases?
23:58 <****> maybe this is system dependent. I'm on FreeBSD
23:59 <****> hmm yeah it is
23:59 <****> bilbo 7385 56.3 0.2 2640 1868 pa TN 5:02PM 0:03.99 /usr/bin/perl ./test.pl (perl5.8.8)
23:59 <****> ^^ that's regular #!/usr/bin/perl on FreeBSD
--- Log closed Sat Oct 27 00:00:17 2007


Total 31 pages. You are browsing page 31/31.

First :: Prev :: [...] [27] [28] [29] [30] [31] :: Next :: Last


Tutti i nuovi CAP Italiani. Come ottenere il database completo