dReKurCe has asked for the wisdom of the Perl Monks concerning the following question:
The interface:#! /usr/bin/perl package ngetlogstdin; sub new { my $self={}; $self->{o}="ngeterr.log"; $self->{a}=undef; $self->{i}={[(110,FB),(100,F)]}; $self->{F}=undef; $self->{B}=$url; bless $self,ngetlogstdin; return $self; } sub access { $self=shift; $arg=shift; print $arg; }
#! /usr/bin/perl use ngetlogstdin; $obj=new ngetlogstdin; for $key(keys %$obj){print "$key\n"}; $arg=<stdin>; $value=$obj->access($arg); print $value;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Accessing values of a Hash object
by ikegami (Patriarch) on Mar 13, 2007 at 21:06 UTC | |
|
Re: Accessing values of a Hash object
by GrandFather (Saint) on Mar 13, 2007 at 21:14 UTC | |
by dReKurCe (Scribe) on Mar 13, 2007 at 21:21 UTC | |
by GrandFather (Saint) on Mar 13, 2007 at 21:38 UTC | |
|
Re: Accessing values of a Hash object
by talexb (Chancellor) on Mar 13, 2007 at 21:11 UTC | |
|
Re: Accessing values of a Hash object
by davorg (Chancellor) on Mar 14, 2007 at 09:00 UTC | |
by dReKurCe (Scribe) on Mar 24, 2007 at 06:19 UTC | |
by davorg (Chancellor) on Mar 26, 2007 at 08:32 UTC | |
|
Re: Accessing values of a Hash object
by dReKurCe (Scribe) on Mar 13, 2007 at 21:30 UTC |