#perl
09 November 2007
Total 36 pages. You are browsing page 4/36.
First :: Prev :: [...] [2] [3] [4] [5] [6] [...] :: Next :: Last
02:13 <****> i want to use KLIX
02:15 <****> isn't quit right since it's at the rightmost side and I have 'or' parenthesis there and prefer the longest possible match over the shortest.
02:21 <****> buu: Where's buubot?
02:22 <****> Does anybody know if it's possible to set the buffer size via lwp/www::mechanize
02:22 <****> ?
02:29 <****> flight16: stack_depth in mech
02:32 <****> hello!
02:32 <****> GumbyBRAIN: hello
02:32 <****> hello, are you going yoni.
02:32 <****> is there a way to make a perl file execute without the ".pl" exention on windows?
02:33 <****> convivial: sure, call it directly: 'perl myfile'
02:33 <****> Nom-, initself , currently, I have to type "MyFile.pl arguemtns"
02:34 <****> convivial: if you don't want to change the actual filename, wrap everything in a .bat file and call that?
02:34 <****> I want to be able to type "MyPerl arguments" and have windows firgure it it's a perl file rather than typing "perl MyPerl"
02:34 <****> convivial: then you need to put the shabang in
02:34 <****> #!perl << first line
02:34 <****> and make sure you have perl in your path
02:34 <****> #!C:/Perl/bin/perl.exe
02:34 <****> I have it
02:35 <****> but it does not work :(
02:35 <****> what happens when you type MyPerl.pl?
02:35 <****> when I type MyPerl.pl it runs the program regardless what directory or disk I'm on
02:36 <****> you couldn't run it if you were not in the directory it was located in.
02:36 <****> I can run "MyPerl.pl" from anywhere with no problem
02:36 <****> so you have MyPerl.pl somewhere in your path, i guess.
02:37 <****> but I want to be able to type "MyPerl" withou the .pl
02:37 <****> initself, yes
02:37 <****> then change the name of the script.
02:37 <****> huh?
02:37 <****> I did
02:37 <****> convivial: windows doesn't honour shebang lines
02:37 <****> convivial: you can't do that
02:37 <****> convivial: either live with it, or get an operating system :)
02:37 <****> mst, crappers
02:37 <****> convivial: the usual hack is have a "MyPerl.bat" that invokes the perl script
02:37 <****> mst, so I have to create 30 .cmd files to do it?
02:37 <****> yes
02:37 <****> welcome to windows.
02:38 <****> oh crap!
02:38 <****> mst: i didnt know if didn't honor the shabang.
02:38 <****> convivial: write a perl script to make them
02:38 <****> heh \o/
02:38 <****> mst, yes, I will. that is very simple to do.
02:38 <****> they need to replace dos prompt with a unix command line processor
02:39 <****> convivial: no
02:39 <****> and make it standard so it will work everywhere!
02:39 <****> convivial: you need to replace windows with a real OS
02:39 <****> iank, well, I need my windows tools :(
02:39 <****> What iank and mst said.
02:39 * iank hugs dwu
02:40 <****> well, i'm off tobed
02:40 * iank CONSUMES ICED CREAM
02:40 <****> night !
02:41 * CPAN upload: Catalyst-Plugin-Acme-LOLCAT-0.01 by ASHLEY
02:44 <****> what does =~ do?
02:44 <****> or translate into english as?
02:44 <****> it binds a value to a regex
02:44 <****> ahhh, im and idiot, ty
02:45 <****> I'm and genius
02:46 <****> yes, you is
02:46 <****> shush xD
02:46 <****> GumbyBRAIN: no u
02:46 <****> use of uninitialized value in pattern match (m//) at /usr/share/perl/5.8.8 sun4-solaris-64int 2.6.17-2-k7 andreas.koenig.gmwojprw@franz.ak.mind.de.
02:46 <****> perlbot: fnord
02:46 <****> gumbyBRAIN: eval
02:46 <****> Die = throw; eval = try.
02:47 <****> GumbyBRAIN: would you like to teach perl here?
02:47 <****> You teach pe in the to shop!
02:48 <****> would you like to teach perl here? hahahaha
02:49 <****> GumbyBRAIN: yes, yes I would.
02:49 <****> Would i do to fix my problem. I'm using the io::socket::inet detect when it comes to changing your resolutions/dual-head config/orientation/etc :p.
02:49 <****> I wrote my first web app today.
02:49 <****> WOO
02:49 <****> http://shere.no-ip.org/~davidshere/iching/
02:49 <****> perlbot: fnord
02:49 <****> gumbyBRAIN: eval
02:49 <****> GumbyBRAIN: eval
02:49 <****> ''error: syntax error at (eval 238) line 1, near "time dilation field.
02:49 <****> since perlnoob seems to be inside an eval, with "no warnings;" in the top and something awful just posted: "i spend the next pass.
02:49 <****> woo
02:50 <****> is exists($var) the best way to check if a variable exists for an if statement?
02:51 <****> fridgid: that doesn't make any sense
02:51 <****> fridgid: exists() is used to see if a hash key exists
02:51 <****> ok, better question, i need to do an if statement that checks if a variable is defined
02:51 <****> defined
02:51 <****> fridgid: then use defined()
02:52 <****> ty
02:52 <****> fridgid, perldoc -f defined
03:02 <****> hi, i have an @array of strings. i wanna insert "http://" in front of each string if it doesnt start with "http://". what's the perlish way?
03:03 <****> map?
03:04 <****> substr($_, 0, 7) eq "http://" or $_ = "http://$_" for @array; # is one of many ways
03:04 <****> perlbot, timtowtdiw
03:04 <****> There Is More Than One Way To Do It Wrong
03:04 <****> perlbot, timtowtdi
03:04 <****> TIMTOWTDI: There is more than one way to do it
03:05 <****> jagerman: thanks
03:05 <****> TDIMTOWTI, yes
03:05 <****> iank: i cant think on map
03:06 <****> $string = prepend_http_maybe($string); # you have to write prepend_http_maybe first
03:06 <****> for an array, @strings = map prepend_http_maybe($_), @strings;
Total 36 pages. You are browsing page 4/36.
First :: Prev :: [...] [2] [3] [4] [5] [6] [...] :: Next :: Last
