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

Channels


#perl

11 November 2007


Total 17 pages. You are browsing page 1/17.

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

--- Log opened Sun Nov 11 00:00:33 2007
00:40 <****> eval catches die....that's awesome.
00:40 <****> perlmonkey2: ''ERROR: syntax error at (eval 216) line 1, near "catches die"
00:40 <****> hah
00:40 * perlmonkey2 never knew that.
00:40 <****> ayup
00:41 <****> eval: eval { die } "Error: $@"
00:41 <****> Jmax: ''ERROR: String found where operator expected at (eval 216) line 1, near "} "Error: $@""syntax error at (eval 216) line 1, near "} "Error: $@""
00:41 <****> heh
00:43 <****> is there a perl library for accessing the inodes of a system?
00:43 <****> wait let me google first lol
00:44 <****> 0' is allowing multiples?
00:45 <****> bennymack: not sure but have you looked at the html its producing?
00:46 <****> I am reading multiplexed server part in Wrox Pro Perl Programming and it mentioned using vec func to bitmask filehandler like : push @handles, \*STDIN; vec ( $mask, fileno(STDIN), 1 ); HERE $mask is 0. I dont get that 1. why do we need to bitmask it with 0 . 2. what does this bitmask mean here ?
00:48 <****> BobSapp: I have. It has 'multiple="multiple"'
00:50 <****> If I have $pid = fork(); what is the best practices way for the parent to check if the child has exited without blocking (waiting)?
00:50 <****> something about the form is broken. it's not printing the labels correctly either
00:50 <****> What does ${something} mean (not talking about hashes)?
00:50 <****> no value. Browsers recover from errors, so your "multiple="multiple" and "multiple="0"" both look the same to (standards compliant) browsers.
00:51 * Zoffix notices that he is in #perl
00:51 <****> perlmonkey2: do a non-blocking wait or just set up a sig handler
00:52 <****> Zoffix: it looks like hes using correct syntax
00:52 <****> http://www.formbuilder.org/download/CGI-FormBuilder-3.0501/docs/CGI/FormBuilder.html#walkthrough
00:52 <****> BobSapp's url is at http://xrl.us/92zi
00:52 <****> bennymack Duh, I've been doing threading so long I've forgotten the simple things.
00:52 <****> 0 | 1, # allow multiple values?"
00:53 <****> BobSapp, yeah, I thought I was in a different channel and he had multiple="0" in the markup.
00:53 <****> bennymack: checked version? :)
00:53 * Zoffix crawls back under his rock.
00:53 <****> i suppose you could try to dump the form field
00:53 <****> with Data::Dumper
00:53 <****> "convivial" at 71.194.35.217 pasted "Installation Error please help!" (43 lines, 1.5K) at http://sial.org/pbot/28537
00:53 <****> just to double check there
00:54 <****> high-rez, I tried to install Array::Utils and it failed!
00:54 <****> please see post
00:54 <****> convivial: install dmake and mingw, or visual studio
00:54 <****> dmake?
00:54 <****> convivial: it's on cpan
00:55 <****> I have visual studio installed
00:55 <****> vs8
00:55 <****> convivial: ok, then you need to run the .cmd file that sets all the environment variables for it, and it has to be in your path
00:55 <****> Jmax: 3.0501
00:55 <****> I just set it with "vcvars32.bat"
00:55 <****> thanks dude!
00:55 <****> np
00:57 <****> I am reading multiplexed server part in Wrox Pro Perl Programming and it mentioned using vec func to bitmask filehandler like : push @handles, \*STDIN; vec ( $mask, fileno(STDIN), 1 ); HERE $mask is 0. I dont get that 1. why do we need to bitmask it with 0 . 2. what does this bitmask mean here ?
01:00 <****> I was looking for something that would allow me to do, @a = ('1', '2', '3'); @b = {'2'}; @c = @a - @b; and @c would = ('1', '3')
01:00 <****> any util like that?
01:00 <****> perldoc -f splice
01:01 <****> oh wait
01:01 <****> check Array::Utils and Array::MoreUtils
01:01 <****> ok
01:01 <****> jjI looked at Array::Utils and nothing there
01:02 <****> sorry, List::Util and List::MoreUtils
01:02 <****> convivial: it's much more efficient to do things like that on hashes than arrays
01:02 <****> bennymack, how do I do it with a hash?
01:03 <****> just think of a hash as a set and your set operation as a not b
01:03 <****> I am tryig to do, (keys %arr) - ('Form') to delete the key 'Form' key
01:03 <****> perldoc -f grep
01:03 <****> foreach ( @a, @b ) { $hash{$_}++; } then %hash contains each member of @a and @b as keys, with occurence in both together as values
01:04 <****> huh?
01:04 <****> I don't want that :(
01:05 <****> perldoc -f grep
01:05 <****> I just want to remove 'Form' from the array return by keys, forinstane, foreach my $key (keys %arr - ('Form')){}
01:05 <****> 1); my @a_not_b = grep { not $b{ $_ } } keys %a; \@a_not_b
01:05 <****> bennymack: ['1','3']
01:06 <****> convivial: for my $key (grep { $_ ne 'Form' } keys %arr) { ... }
01:07 <****> eval: my %arr = qw(foo bar Form Barn); grep { $_ ne 'Form' } keys %arr
01:07 <****> Jmax: 1
01:07 <****> -"eval: "
01:07 <****> ok, thanks.
01:09 <****> :)))
01:09 <****> thankies
01:13 <****> ok i fixed the multiple thing. apparently it gets confused if you send it multiple values
01:13 <****> but the labels are still screwed up. it's using the name rather than the label field
01:14 <****> and not printing the "Fields that are highlighted are required." message
01:24 <****> hi again.
01:24 <****>";
01:25 <****> convivial, You have to deref it first.
01:25 <****> ok.
01:25 <****> convivial, Although I'm fairly certain you'd get an error message, had you tried it.
01:25 <****> convivial: use qq//
01:25 <****> ok.
01:25 <****> perldoc perlop
01:26 <****> (not to deref though)
01:26 * CPAN upload: Getopt-CallingName-1.16 by SRSHAH
01:29 <****> how can I determine the type of a blessed reference (hash, array, etc)?
01:29 <****> can you also use push() with a string?
01:29 <****> nope,
01:30 <****> not according to perldoc i can't
01:30 <****> ribasushi: ref
01:30 <****> convivial: use push in what way? to append something to it?
01:30 <****> dondelelcaro: _blessed_ reference
01:30 <****> use it to append to a string
01:31 <****> convivial: $string .= $tail
01:31 <****> I know, i'm just being weird. :) playing around with something new that I leanred :)
01:31 <****> ribasushi: ref, or Scalar::Util
01:31 <****>isa
01:31 <****> ref will return the class, there is a typeof or similiar in Scalar::Util
01:33 <****> reftype


Total 17 pages. You are browsing page 1/17.

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


Tutti i nuovi CAP Italiani. Come ottenere il database completo