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
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
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
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
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.
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
[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
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
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
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
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
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
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
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
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
$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
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
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 = (
18 matches
Mail list logo