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

Channels


#perl

28 December 2007


Total 45 pages. You are browsing page 3/45.

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

01:12 <****> CPAN++
01:12 <****> one should usually check there first
01:12 <****> chances are, someone has already solved your problem (for free)
01:23 <****> ok, what is wrong with this now: SV* bah = newSVpv(data, strlen(data) + 1); ?
01:24 <****> just crasches
01:24 <****> hmm
01:29 <****> I AM SAD
01:31 * CPAN upload: Perl6-Doc-0.32_08 by LICHTKIND
01:34 <****> Perls in your ass.
01:34 <****> Get them in.
01:34 <****> Wonder if they're really objects?
01:35 <****> Try to feel if they have really been instanciated in there?
01:35 <****> Are you sure?
01:36 <****> Or...
01:36 <****> Are you running perl 5?
01:37 <****> w
01:37 <****> h
01:37 <****> a
01:37 <****> t
01:38 <****> Free your ass and your mind will follow.
01:38 <****> (gc base rule)
01:40 <****> opendir(DIR, "$_") <-- if $_ contains spaces in it as the dir name - how do I make $_ expand to "/directory/is here/"
01:40 <****> Shit!
01:40 <****> How can you make it?
01:40 <****> If i escape the " it doesn't seem to work...
01:40 <****> why would you escape the quote?
01:40 <****> Dont understand.
01:41 <****> Tabmow: what problem do you have? you don't need the quotes
01:41 <****> No you dont.
01:41 <****> opendir my $dh, $dir or die ...;
01:41 <****> ok for example, if i do 'cd /directory/is here/' it doesn't work. If i do 'cd "/directory/is here"' it does work
01:41 <****> Your opendir looks ok to me even with spaces in directory path
01:42 <****> it works fine on directories without spaces..
01:42 <****> w8. Trying...
01:42 <****> it also works with spaces
01:43 <****> looks ok to me after a try.
01:44 <****> $a='C:\Documents and Settings\Zozo';
01:44 <****> opendir(DIR, "$a") or die;
01:44 <****> what cd function are you referring to?
01:44 <****> probably the shell!
01:44 <****> perl doesn't have one
01:44 <****> and no need for the damn quotes
01:44 <****> anno-: use Shell; :)
01:44 <****> Yes. You need the quotes.
01:44 <****> no you don't
01:45 <****> Else it's not a string?
01:45 <****> Else it's not a scalar?
01:45 <****> well it doesn't work for me - even from the command line it doesn't work
01:45 <****> HohoHuhu: you can spew nonsense for a while, but not techincal nonsense
01:45 <****> unless i encase the dirname in "
01:45 <****> The "double quotes" look right to me.
01:45 <****> how is $a not a scalar?
01:45 <****> even?
01:46 <****> ok. Your right?
01:46 <****> ok. Your right.
01:46 <****> and if you are doing it from the command line you have to deal with the shell's quote interpretation
01:47 <****> and if you are using windows you have to switch all your " for ' and vice versa
01:47 <****> So, Tabmow?
01:47 <****> I'll do some more testing...
01:48 <****> you also have to double the \\ if you are using ""
01:48 <****> Shit. He's right.
01:48 <****> and this is why you should just paste your code on the pastebot so we don't have to waste time mentioning all this
01:49 <****> Pain in the ass to deal with those...
01:49 <****> and possibly confusing you at the same time
01:49 <****> well windows is a PITA anyway ;)
01:49 <****> but I don't think Tabmow is using windows :)
01:50 <****> Worst thing is someone playing with a cygwin perl with dos/windows files...
01:51 <****> yes that would suck, especially if they don't mention that tiny detail
01:51 <****> chomp wont work properly.
01:52 <****> Or.. yes it would.
01:52 <****> Am not even sure anymore.
01:53 <****> I opened up a can of worms ;o( sorry guys... I ended up just adding them explicitly anyways
01:53 <****> works now
01:53 <****> I'm not a programmer at heart.. I got roped into doing this script... this sucks so bad ;o( I hate my job
01:53 <****> ehehe
01:53 <****> them?
01:54 <****> anno-: the quotes
01:54 <****> all advice wasted
01:56 <****> *yawn*
01:57 * Khisanth throws a dirty sock into dwu's mouth
01:58 <****> oooooo, "use 5.11.0;" will mean having strictures.
01:58 <****> hopefully it'll mean having warnings also
01:58 <****> but strictures better than nothing
01:58 <****> it would suck if it doesn't
01:59 <****> : question ... Data::Dumper vs Storable vs other ...
01:59 <****> Don't think it has warnings, the patch only mentions strictures.
01:59 <****> "strict" vs "5.11.0" unless the stricture is is global
01:59 <****> does it work like use vars?
02:00 <****> if it's lexical that is kinda pointless
02:00 <****> Uhm, it works like "use strict;", I guess. I dunno, shouldn't -you- be following p5p? :(
02:00 <****> if it's global you would have to go and fix non strict modules ...
02:00 <****> NO :)
02:00 <****> got damn! it works!
02:01 <****> get another damn
02:01 <****> well if it works like use strict; then use 5.11.0; sucks UNLESS it also has other effects
02:01 <****> like enabling everything from features perhaps :)
02:01 <****> Well, -yes-, it does.
02:02 <****> I meant that the strictures part of use 5.11.0; worked like use strict;.
02:02 * Khisanth skips ahead to use 6.0.0;
02:02 <****> In that you wouldn't have to do use 5.11.0; use strict;.


Total 45 pages. You are browsing page 3/45.

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


Tutti i nuovi CAP Italiani. Come ottenere il database completo