On Friday, October 28, 2011 at 07:05 , Gary wrote:
> sub new {
> my ($class, $file_name) = @_;
> my $self = {
> _file_name => $file_name,
>
> _cfg => {} # <--<< the hash i want to access
> };
> bless $self, $class;
> return $self;
> }
>
> but I can't work out how to access self->_cfg and its e
On 28 October 2011 12:40, Gary wrote:
>> Thanks.
>
> Sh1t. How do I use this in a foreach, please?
>
> Trying
> foreach my $key (sort keys $self->{_cfg} ) {
> I get "Type of arg 1 to keys must be hash (not hash element)"
>
foreach my $key (sort keys %{ $self->{_cfg} } ) {
# do stuff
}
%{ $refe
On Friday, October 28, 2011 at 07:54 , Gary wrote:
> Dermot, you're a genius! I would *never* have stumbled on that byaccident.
> I'm pretty sure I did try %$self->{_cfg} but it was having
> none of it.
>
At this point I'm going to gently but firmly recommend that you stop and read
some docum
Hi everbody!
I just discovered CGI.pm package and i think it's cool, but i still having
a couple of dubts
Imagine i got a pice of script like that
use DBI;
use CGI;
my $h=new CGI() ;
## some DB connection
print $h->header;
print $h->start_html;
my $query=$q->prepare("select name, age f
On Fri, 28 Oct 2011 07:23:16 -0400
John SJ Anderson wrote:
>
>
> On Friday, October 28, 2011 at 07:05 , Gary wrote:
>
> > sub new {
> > my ($class, $file_name) = @_;
> > my $self = {
> > _file_name => $file_name,
> >
> > _cfg => {} # <--<< the hash i want to access
> > };
> > bless $self, $cl
On 11-10-28 09:22 AM, Pau Marc Munoz Torres wrote:
Hi everbody!
I just discovered CGI.pm package and i think it's cool, but i still having
a couple of dubts
Imagine i got a pice of script like that
use DBI;
use CGI;
my $h=new CGI() ;
## some DB connection
print $h->header;
print
thanks!
2011/10/28 Shawn H Corey
> On 11-10-28 09:22 AM, Pau Marc Munoz Torres wrote:
>
>> Hi everbody!
>>
>> I just discovered CGI.pm package and i think it's cool, but i still
>> having
>> a couple of dubts
>>
>> Imagine i got a pice of script like that
>>
>> use DBI;
>>
>> use CGI;
>>
>>
I need some help to connect to a web service WSDL. I installed SOAP::WSLD
and able to bind OK and access the service and call some methods, but having
trouble passing a security token.
My mission is to pass an XML request to the service and receive an
acknowledgement. The script is shown below f
Hi Pau,
in addition to what Shawn has written, here are a few comments on your code:
On Fri, 28 Oct 2011 15:22:26 +0200
Pau Marc Munoz Torres wrote:
> Hi everbody!
>
> I just discovered CGI.pm package and i think it's cool, but i still having
> a couple of dubts
>
> Imagine i got a pice of
On Wed, Oct 19, 2011 at 1:10 AM, Leo Susanto wrote:
> use strict;
> my %CELL;
> my %CELL_TYPE_COUNT;
> my $timestamp;
> my $hour;
> while (my $line = ) {
>if ($line =~ m|\d{1,2}/\d{1,2}/\d{2} ((\d{1,2}):\d{1,2}:\d{1,2})|) {
> #10/17/11 18:25:20 #578030
>$timestamp = $1;
>
On 10/28/11 Fri Oct 28, 2011 2:15 PM, "Chris Stinemetz"
scribbled:
> On Wed, Oct 19, 2011 at 1:10 AM, Leo Susanto wrote:
>
>> use strict;
>> my %CELL;
>> my %CELL_TYPE_COUNT;
>> my $timestamp;
>> my $hour;
>> while (my $line = ) {
>>if ($line =~ m|\d{1,2}/\d{1,2}/\d{2} ((\d{1,2}):\d{1
Hi Shlomi
thanks you for your advise, next time i would do it carefully
pau
2011/10/28 Shlomi Fish
> Hi Pau,
>
> in addition to what Shawn has written, here are a few comments on your
> code:
>
> On Fri, 28 Oct 2011 15:22:26 +0200
> Pau Marc Munoz Torres wrote:
>
> > Hi everbody!
> >
> > I
12 matches
Mail list logo