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

Channels


#perl

08 October 2007


Total 42 pages. You are browsing page 4/42.

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

02:22 <****> Karma for global warming: 1
02:22 <****> !
02:22 <****> Is there a method to map an IP address in dotted-decimal form to a hostname, using only core Perl 5.8.8, that doesn't totally suck?
02:22 <****> I am really really tired of gethostbyaddr(pack(blah, split blah blah blah)), AF_FUCKME)
02:23 <****> Socket can do the packing for you
02:23 <****> if you're going to mention global warming, you should also mention ocean acidification
02:24 <****> mauke: I take it that means "no".
02:24 <****> (global warming and shit)--
02:24 <****> I don't know
02:25 <****> okay, thanks.
02:27 <****> yrlnry: closest is perl -MSocket -le 'print scalar gethostbyaddr(inet_aton("66.35.250.197"), AF_INET)'
02:28 <****> Yeah, that's what I came up with. At least it omits the split-pack idiocy.
02:28 <****> Thanks.
02:28 <****> AF_INET should be the default there.
02:30 <****> getghostbyaddr( ..., AF_NIRWANA)
02:30 <****> ive been having a hard time picking a language so ive decided to go with perl i got a book called learning perl is that a good book to start with
02:30 <****> i also bought programming perl as well
02:31 <****> bsdbandit: those are good books to start with
02:31 <****> ok
02:31 <****> cool
02:31 <****> perlbot: books
02:31 <****> http://books.perl.org
02:31 <****> i also found this cool site called perl monks
02:31 <****> :)
02:31 <****> hah
02:31 <****>:)
02:32 <****> just for when im at work i can read source code
02:33 <****> i just having an issue right now im running freebsd as my desktop and i have perl installed and i can run my programs without any problems when typing perl hello
02:33 <****> IRC is great, too. You can leave it open, and if your boss walks by, it'll look enough like code so as to not get suspicious.
02:33 <****> Granted, using something like irssi is better in that respect.
02:33 <****> Better yet is to have a telecommute position...
02:33 <****> but when i try to run it as an executable it saying command not found
02:34 <****> bsdbandit, Your shebang line is probably wrong.
02:34 <****> what could that be
02:34 <****> #!/usr/bin/perl
02:34 <****> this is what is in my hello world program
02:35 <****> the i have print "Hello World!n\";
02:35 <****> Pasting a whole example to the pastebot in the topic would be helpful.
02:35 <****> jagerman: http://irssi.org/themefiles/c0ders.png
02:35 <****> ok
02:35 <****> bsdbandit: does /usr/bin/perl exist?
02:35 <****> bsdbandit: what does "ls -l /usr/bin/perl" show you?
02:35 <****> And precise details of how you're calling it.
02:35 <****> yes
02:35 <****> i verfied it by /usr/bin/perl -version
02:36 <****> mauke: Hahaha, that's awesome.
02:36 <****> /usr/local/bin/perl5.8.8
02:37 <****> bsdbandit, Sure you haven't gotten any funny characters at the end of the #! line
02:37 <****> bsdbandit, ?
02:37 <****> not "haha" funny tho
02:37 <****> Like, *gasp*, windows carriage returns?
02:38 <****> apeiron: 'sup?
02:38 <****> _Steve_, Not much. Work tomorrow!
02:38 <****> yeah
02:39 <****> i'm happy tho, i got my first converted web server going friday afternoon, so i can get it tested next week, then hopefully work on converting some more....
02:39 <****> Converted?
02:39 <****> yay!
02:39 <****> Religious webservers? ;)
02:40 <****> wat? work tomorow? no way!
02:40 * Zoffix checks the calendar
02:40 <****> you mispelled "wai"
02:40 <****> :(
02:40 <****> hrm strange
02:41 <****> phew.. it's only Sunday :) apeiron, scared me :)
02:41 <****> computer upstairs still says its out...
02:41 <****> it's? And... out what?
02:43 <****> hey apeiron i have my code posted on http://pastebin.com/m7f5732d3
02:43 <****> bsdbandit: The paste m7f5732d3 has been copied to http://erxz.com/pb/4629
02:43 <****> sorry about that
02:44 <****> Like, *gasp*, windows carriage returns?
02:44 <****> Indeed.
02:44 <****> Though the pastebot puts those there, I think.
02:45 <****> bsdbandit, how are you running that script?
02:45 <****> apeiron: not in my experience
02:45 <****> _Steve_, May be pbotutil then.
02:45 <****> bsdbandit, If you open it in vi, do you see lines ending with ^M ?
02:45 <****> and if you don't, what does :set ff? say?
02:46 <****> vi doesn't have ff
02:46 <****> it does if your vi is a link to vim
02:46 <****> mine does
02:46 <****> ... evil
02:47 <****> in BSD it's not that way by default
02:47 <****> And I specifically asked for vi as opposed to vim because (at least my) vim doesn't display ^M whereas my vi does.
02:47 <****> Isn't evil a vi clone?
02:47 <****> jagerman, Yes.
02:47 <****> And vile.
02:47 <****> And elvis.
02:47 <****> no there is no ^M at the end
02:47 * jagerman sticks with vim
02:48 <****> bsdbandit, What is the output of: file hello
02:48 * Zoffix sticks with the editor he's usin'
02:48 <****> apeiron: If it doesn't auto-detect it as a dos file, it will.
02:48 <****> hello world
02:48 <****> that only works when i type perl hello
02:48 <****> No. Not perl hello. file hello
02:48 <****> but typing ./hello i get command not found
02:49 <****> Yes. We've been over that.
02:49 <****> bsdbandit: What are the permissions of the script?
02:49 <****> -rwxr-xr-x
02:49 <****> Nope, not that.


Total 42 pages. You are browsing page 4/42.

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


Tutti i nuovi CAP Italiani. Come ottenere il database completo