Re: get full month name

2007-12-08 Thread Eric Krause
I'm also a perl newbie, but couldn't you use a hash? Something like: %fullMonth = ( jan => January, feb => February, mar => March, etc...); print "Month: $fullMonth{$month}"; -eric [EMAIL PROTECTED] wrote: I'm trying to write a subroutine that r

get full month name

2007-12-08 Thread bbrecht56
I'm trying to write a subroutine that returns the full month name, for example January, or February when I call the subroutine and pass a scalar, for example $m that could have a value in one of the following format 1. three letter format, for example jan or feb, or 2. one or digit format for exam

Re: Net:FTP send JOB from Windows to z/OS mainframe and get output

2007-12-08 Thread Kayakman
On Dec 5, 3:54 pm, [EMAIL PROTECTED] (Mariusz) wrote: > Hello list, > > I am able to send a JOB to z/OS usinf Net::FTP. But I would like to > receive the job output of the submitted job too. > Do you know how should be used Net::FTP to achieve this ? > > Best regards > > Mariusz You can use the MV

Re: Crypt SQLite

2007-12-08 Thread David Filmer
On Dec 6, 10:47 am, [EMAIL PROTECTED] (Octavian Rasnita) wrote: > I've seen a program made in C# that uses an SQLite database which is > crypted. I doubt that. SQLite does not (AFAIK) have an encrypted database engine. The only way that such a program could do this is if the C# program somehow a

Re: Calculating Average from a file

2007-12-08 Thread Dr.Ruud
John W . Krahn schreef: > Rodrick Brown: >> John W. Krahn: >>> perl -ane'$total+=$F[4]}{printf"Avg: %.2f\n",$total/$.' >>> /tmp/filename >> >> Hi John please explain how exactly $F[4] works? how is it set? Use -MO=Deparse to show you what Perl code your command line expression was compiled to.

Re: get full month name

2007-12-08 Thread Chas. Owens
On Dec 7, 2007 6:10 PM, <[EMAIL PROTECTED]> wrote: > I'm trying to write a subroutine that returns the full month name, for > example January, or February when I call the subroutine and pass a > scalar, for example $m that could have a value in one of the following > format > > 1. three letter for

Re: get full month name

2007-12-08 Thread Dr.Ruud
[EMAIL PROTECTED] schreef: > I'm trying to write a subroutine that returns the full month name, for > example January, or February when I call the subroutine and pass a > scalar, for example $m that could have a value in one of the following > format > > 1. three letter format, for example jan or

Re: Crypt SQLite

2007-12-08 Thread Chas. Owens
On Dec 6, 2007 1:47 PM, Octavian Rasnita <[EMAIL PROTECTED]> wrote: > Hi, > > I've seen a program made in C# that uses an SQLite database which is > crypted. > Can we do the same thing with perl? > > Some years ago I've seen only some comercial solution for doing this, but > now I've seen that free

How can I print a number larger than 128?

2007-12-08 Thread Niu Kun
Dear all, I'm new here. I've got a number larger than 128. I want to send it by socket. I find that if print the number directly, I'll print the number in ascii format. So I'll have 3 separate numbers transmitted. But I only want to transmit one byte. How can I do so? Thanks for any help. -- To

Re: How can I print a number larger than 128?

2007-12-08 Thread Tom Phoenix
On 12/8/07, Niu Kun <[EMAIL PROTECTED]> wrote: > I've got a number larger than 128. > I want to send it by socket. > I find that if print the number directly, I'll print the number in ascii > format. > So I'll have 3 separate numbers transmitted. > But I only want to transmit one byte. > How can I

Re: Not catching HUP signal - Perl Sybase

2007-12-08 Thread NewbeeUnix
Yes I did tried with Sybase::DBlib and it works with that.. I also came to the same conclusion that CTlib is catching it somehow... Is there a way to not allow that Also DBlib module cannot be used ... some restrictions are there :-( Thanks! On Dec 7, 1:43 pm, [EMAIL PROTECTED] (Tom Phoen

Re: Not catching HUP signal - Perl Sybase

2007-12-08 Thread Tom Phoenix
On 12/8/07, NewbeeUnix <[EMAIL PROTECTED]> wrote: > Yes I did tried with Sybase::DBlib and it works with that.. > I also came to the same conclusion that CTlib is catching it > somehow... > Is there a way to not allow that I should think so, although you might have to install a different modu

Re: How can I print a number larger than 128?

2007-12-08 Thread Chas. Owens
On Dec 8, 2007 8:32 AM, Niu Kun <[EMAIL PROTECTED]> wrote: > Dear all, > I'm new here. > I've got a number larger than 128. > I want to send it by socket. > I find that if print the number directly, I'll print the number in ascii > format. > So I'll have 3 separate numbers transmitted. > But I only

Re: How can I print a number larger than 128?

2007-12-08 Thread Gunnar Hjalmarsson
Niu Kun wrote: I've got a number larger than 128. ... Do not multi-post!! http://groups.google.com/group/comp.lang.perl.misc/browse_frm/thread/0fa92f6197696b8e -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Mechanize::How do I get the results back after Submitting a Form.

2007-12-08 Thread newBee
Hello All, I have been having trouble figuring out Mechanize module specially on getting back the results after submitting a form. I am trying to access ancestry dot com to get the results according to the the form that I submit. Fallowing code is written to fill the First Name input field and Las

Re: Mechanize::How do I get the results back after Submitting a Form.

2007-12-08 Thread yitzle
$mechObject->content ought to work. For some reason, though, I've been using $mechObject->response()->decoded_content() For the difference, see the mechanize documentation on CPAN -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org

Re: Not catching HUP signal - Perl Sybase

2007-12-08 Thread Chas. Owens
On Dec 8, 2007 9:28 AM, NewbeeUnix <[EMAIL PROTECTED]> wrote: > Yes I did tried with Sybase::DBlib and it works with that.. > I also came to the same conclusion that CTlib is catching it > somehow... > Is there a way to not allow that > Also DBlib module cannot be used ... some restrictions are

Re: get full month name

2007-12-08 Thread Jefferson Kirkland
Well, to go along with the other example(s), here is a way of doing it using the localtime() function: use strict; use warnings; my ($second, $minute, $hour, $dayOfMonth, $month, $yearOffset, $dayOfWeek, $dayOfYear, $daylightSavings) = localtime(); my $monthnum = $month + 1; my %monthname = (