| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
Comments:
<0> I love being able to use apt-get with my Mac <0> :) <1> fink uses apt-get <2> jbalcomb: yeah, you can't get ARP information across diferent networks <0> I know <3> merlyn what is fink and darwinports? <1> two competing systems for OSX <0> Which is why I use it. hehe <2> jbalcomb: MAC addresses are just used on local ethernet <1> wildly incompatible <1> and redundant, but overlapping <1> and unfortunately not subsettig <1> so I have... both <0> I don't have both. I only have fink. <1> rerunning my nmap <1> uh - it still doesn't say on an -sP which device type\
<3> dkr: yeah, hrmm.. i know but hadn't considered the seriousness of that fact. <1> how do you get that? <1> this is with 4.10 <3> dkr: it seems i can not do what i'm trying to do. perhaps i can SNMP walk through the mac table on the switch... <4> hi all. is there a good "perl prettifier" module for vim? I'm pretty inconsistant on K&R style, using tabs vs spaces, etc. and was looking for something nice and automated ;) <5> joseki: perltidy <1> Ahh... had to be sudo <6> command -range=% -nargs=* Tidy <line1>,<line2>! perltidy -l=120 -i=4 -ci=4 -ole=unix -nola -nwls="**" -nwrs="**" -olc -ce -bar <args> <2> merlyn: oh yeah, forgot to mention I ran the scan as root, :) sorry <7> hi all <0> Hello <1> but thanks for the 4.x pointer <2> jbalcomb: all my ip phones use dhcp... :) <4> perltidy huh. ok, i was looking more for a vim style thingy, but this might work <3> dkr: same here. I'm working on getting some auto configuration scripting set up <6> joseki: it's a vim style thingy once you put that line in your vimrc :) <2> jbalcomb: ah, you want to ***ign static ips based on their MACs? <5> joseki: I know someone who loves perltidy (um not me). Hobbs: whichline? <6> centosian: the one above beginning "command" <8> joseki: you can use the = command to reindent lines <7> i'm getting a syntax error on this line, anyone know why? <7> foreach %e_hash (@$rule_data_ref) <5> hobbs: oh <7> rule_data_ref is a reference to an array full of hashes <8> gniretar_work: what do you expect that to do? <9> gniretar_work: structures only store scalars <3> dkr: i need the mac for the configuration file name <8> rule_data_ref is a reference to an array full of hash_REFS_ <1> foreach can only be a salar <1> scalar <7> ah <7> so in order to do that i need to make the hashes references <3> dkr: the gxp-2000 uses encode.sh (some JAVA app) to build a binary name 'cfg<MAC Address>' from a text file <0> The control variable can only be a scalar yes. <7> to the hashes <8> gniretar_work: no .. <2> but each takes a hash argument... inconsistant? :) <8> arrays can only contain scalars <8> so can hashes. <8> hashes and arrays are not scalars <8> references are, though <7> OK <7> gotchya <1> $popeye is both a scalar *and* a sailor <8> eval: $popeye = \spinach <10> Botje: \'spinach' <1> %chopped_beef_and_potatoes is both a hash and some hash <4> ooh. perltidy is very cool <4> thanks all <1> \&the_code_book is both a coderef and a code ref <1> sub dive { } is both a subroutine and a sub routine <1> sub merge { } ... <3> merlyn... <2> %family_posing_for_picture is both an ***ociative array and an ***ociative array <1> ooh - I gotta use that one somewhere <1> if you find something calling it an ***ociative array, burn it or ignore it <3> C:\> rename "My Pictures" "My ***ociative Arrays" <2> the boss should give my ***ociate a raise <1> ->rhythm is both a method and a method
<3> how about a 'mode'? <3> or a 'selection'? <1> (peas , carrots, pickles) is both a list, and list <3> or a 'split'? <1> split //, $banana <3> ah, use 'regular expression' <1> & lunch <2> /uh-oh/ is a regular expression and a regular expression <3> s/Thank You/Yer Mom/ is a substitution and a substitution <4> so, should non-exported package globals be declared in my constructor, or outside? <0> What was that about? <11> drive-by echo <2> joseki: no need for globals, just make them private vars <4> dkr: ok, so declare them in the constructor, like my $self = { foo => [ ], bar => { } }; etc <6> joseki: er <4> hobbs: sorry, i'm new at this... <6> joseki: those aren't global in any sense, or private vars, or anything resembling what you asked <4> hobbs: okay, that's my back***wards way of doing private vars ;) <6> joseki: doubtful <12> joseki: Those are hash keys contained in your $self hash reference. More or less perl's members. <12> buubot: restart <12> heh <6> joseki: Those are very public attributes, not private anything. And they're attached to instances, not to the cl***. <12> Suddenly 30 more channels show up with traffic! <2> a common convention is to just use underscore prefixes for private stuff <4> ok, so in perldoc perltoot, then hve $self->{NAME} $self->{AGE} in their example, that's where I got the idea from <10> perltoot - Perl OO tutorial, part 1. To access this perldoc please type, at a command line, 'perldoc perltoot'. You may also find it at http://perldoc.perl.org/perltoot.html <2> hobbs: whats wrong with attaching them to the instance? <4> so, maybe $self->{"_foo} would be what you're suggesting? <4> $self->{"_FOO"} <6> dkr: nothing, except that it doesn't even vaguely resemble what he originally asked about <2> that's what i was thinking, although I wouldn't use uppercase unless they are constants <2> hobbs: you can't take questions too literally, you have to do some mind-reading. :) <6> dkr: I know that. My mind just wasn't willing to bend quite so far <4> ok, i'll go back to reading perltoot then. <5> joseki: I've always been somewhat partial to 'use fields' <5> for some definitions of 'always' <4> ok, let me ask the question this way. Is perltoot a good model for a cl***? <11> eval: keys %{ $self->{poco_irc}->channel_ban_list('#perl') } <10> BinGOs: 29 <5> joseki: in my humble opinion it's best for learning object oriented perl. It's nice to use some existent module to handle details. It's not a 'bad' model <4> ok, great ;) I'll have at it! <2> but also keep TMTOWTDI in mind, :) <4> sure thing! <6> Has perltoot been improved recently? <5> For normal projects I'd recommend 'use fields' and 'use base' but I'm sure others here have more detailed input <6> Last time I looked it was twisted and confusing and had some examples of bad practice <2> I like use base, more consice than using @ISA <13> does anyone know is Net::OSCAR works with AIM or have they retooled their protocol enough to **** it over <2> TIAS <6> zshzn: Net::OSCAR is fine, Net::AIM is dead <13> hrm, ok. now to figure out why the example code isn't working for me <13> yay, fixed <6> anyway, I seem to remember Programming Perl having good enough coverage of OO basics <13> yea, sorry for that illtimed and useless interruption <2> I have Conway's OOP. I don't think I've read much of it, though, heh. :) <0> Some people find it difficult to understand the Camel without reading the Llama and Alpaca first (well, at least the Llama). <4> hm, it looks like use Alias qa(attr); might be a nice approach to being able to get a object's data members as simple variables (from perltoot) <1> I'd highly recommend the llama and the alpaca, but I'm biased. <1> look at Data::Aliased in the CPAN <1> I mean Lexical::Alias <6> eggzeck: yeah, that's fine. I'm just saying, once you have enough basic knowledge of perl (however you got there) to want a reference to OO, the Camel is a good enough start <1> and Data::Alias <1> and perlboot :) <11> perlbot: perlboot <14> Perl OO tutorial for beginners - http://perldoc.perl.org/perlboot.html <0> hobbs: Yeah, and I don't disagree with you. Though I think it's best to also read the Alpaca before reading the Camel, since the Alpaca covers OOP as well. <0> imho <6> eggzeck: I can't really comment because I never got around to the Alpaca <0> hobbs: I see, well obviously you're not a beginner. I am though, so I read all that I could (and still reading more). <6> eggzeck: I haven't been doing perl for _that_ long, but I was still mostly not a beginner by the time the first Alpaca came out <15> eggzeck: Mark Twain's "Roughing It" is good, and gutenberg.org has it as an etext. <0> Yaakov: I'll check it out. Though if it's for beginners, I'm past that :p
Return to
#perl or Go to some related
logs:
diffing koans twiki cxoffice css #lisp install f4l suse 10.1 #centos Timing buffered disk reads: read() failed: Input/output error adamti91 kio_media_mounthelper fstab gentoo #fedora unrecognized mount option uid=1000
|
|