Because I'm picky. I ruled out OracleTool because it's web-based. While it
may be an advantage at times (don't need to install on every machine I use),
it's a whole number of layers I don't want to troubleshoot when in Crisis
Mode.
OraC is pretty cool. I looked at it when I got O'Reilly's
of list ORACLE-L [EMAIL PROTECTED]
cc:
Subject:RE: Perl - Was Unix time conversion function
Because I'm picky. I ruled out OracleTool because it's web-based. While
it
may be an advantage at times (don't need to install on every machine I
use),
it's a whole number
Title: unix time conversion function
Cary I once thought I wanted to do some Perl coding... So I bought a
book and started to play with it. It made my head bleed... literally I had
little droplets of blood emerging from my head They rushed me to the
hospital and put me in the Perl
Title: unix time conversion function
I think its like almost any subjective
idea: its beautiful if you love it, heinous if you hate it.
I love Perl; it does what I mean. The only
thing I really dont like about Perl 5 is its yucky way of supporting complex
data structures. Im eager
about Perl or am I a lone wolf in a Perl
world?
RF
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Cary
Millsap
Sent: Friday, January 24, 2003 4:29 PM
To: Multiple recipients of list ORACLE-L
Subject: RE: unix time conversion function
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Cary
Millsap
Sent: Friday, January 24, 2003 4:29 PM
To: Multiple recipients of list ORACLE-L
Subject: RE: unix time conversion function
At the risk of stating the obvious, doing it in Perl
Title: RE: Perl - Was Unix time conversion function
I used to be, but I finally bit the bullet ... I ordered my copy of Jared's book from Amazon.com yesterday !!
Raj
__
Rajendra Jamadagni MIS, ESPN Inc.
Rajendra dot Jamadagni at ESPN dot
in a Perl
world?
RF
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Cary
Millsap
Sent: Friday, January 24, 2003 4:29 PM
To: Multiple recipients of list ORACLE-L
Subject: RE: unix time conversion function
At the risk of stating
wolf in a Perl
world?
RF
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Cary
Millsap
Sent: Friday, January 24, 2003 4:29 PM
To: Multiple recipients of list ORACLE-L
Subject: RE: unix time conversion function
At the risk of stating
Perl kind of makes sense but I haven't reached the point where it clicks and
becomes natural. I still need to think about it very hard when I'm writing
it. Hence, a lot of the time I fall back on shell scripts supplemented by
pre-written (some would say shamelessly ripped off) perl code for the
Title: unix time conversion function
Now
that's what I call a "Perl Breakdown!!"...A nervous breakdown brought on
by pathological eclecticism. The cure for this is a healthy dose of Python. It
is truly refreshing!!
Steve
Orr
Oracle
DBA and part-time Python Evangelist.
---
Original Message
In my mind there is nothing obvious about Perl,
Anyone else feel that way about Perl or am I a
lone wolf in a Perl world?
I think the correct progression is to start with ksh; then mix in sed, awk,
For me, it was either Perl or an icky bass-ackward pipe-laden awk/sed/regex
unmaintainable bastion. OK, I couldn't get rid of the regex. While I'll
not be entering the Obfuscated Perl contest anytime soon, I think Perl is
much easier to understand for a traditional programmer (Assembly, BASIC,
world?
RF
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Cary
Millsap
Sent: Friday, January 24, 2003 4:29 PM
To: Multiple recipients of list ORACLE-L
Subject: RE: unix time conversion function
At the risk of stating the obvious
Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Cary
Millsap
Sent: Friday, January 24, 2003 4:29 PM
To: Multiple recipients of list ORACLE-L
Subject: RE: unix time conversion function
At the risk of stating the obvious, doing it in Perl looks like
My impression of Programming Perl was that it was primarily intended as an
ego trip for the author. I found Learning Perl 2nd Ed. and Perl Core
Language / Little Black Book to be much more useful. Yes, I have the Perl
for Oracle DBA's too, but haven't had the time to get into it yet.
To: Multiple recipients of list ORACLE-L
Subject: Perl - Was Unix time conversion function
Cary I once thought I wanted to do some Perl coding... So I bought a book and started to play with it. It made my head bleed... literally I had little droplets of blood emerging from my head They rushed
to ORACLE-L
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
cc:
Subject:RE: Perl - Was Unix time conversion function
For me, it was either Perl or an icky bass-ackward pipe-laden
awk/sed/regex
unmaintainable bastion. OK, I couldn't get rid
to ORACLE-L
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
cc:
Subject:Perl - Was unix time conversion function
Cary I once thought I wanted to do some Perl coding... So I bought a
book and started to play with it. It made my head bleed
Title: RE: Perl - Was unix time conversion function
If you can do it in Perl chances are you can do it better in Python and someone can actually read and understand it without a PHD... AKA Perl Helper Dweeb. :-) In Perl it takes effort to write readable code but it comes naturally in Python
Title: RE: Perl - Was unix time conversion function
I
haven't done anything with Python but my problem with Python or Ruby is
that
they
don't come with many OS variants. Perl comes with any OS and there is
a
huge
repository of ready made scripts. I have to confess stealing some from
of list ORACLE-L
[EMAIL PROTECTED]
cc:
Subject:Perl - Was unix time conversion function
Cary I once thought I wanted to do some Perl coding... So I bought a
book and started to play with it. It made my head bleed... literally I
had
little droplets of blood emerging
-Original Message-
I'll bet Stephen has a toolbox in his garage that contains
a single flat blade screwdriver and no phillips screwdrivers nor any
wrenches. ;)
-
Don't need tools. Got pshycokinesis (got milk too). Been taking lessons
Jesse, Rich [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
01/28/2003 07:58 AM
Please respond to ORACLE-L
To: Multiple recipients of list ORACLE-L
[EMAIL PROTECTED]
cc:
Subject:RE: Perl - Was Unix time
conversion function
For me
You can always outsource your perl development to me. :)
On Tue, 28 Jan 2003, Hately, Mike (NESL-IT) wrote:
Perl kind of makes sense but I haven't reached the point where it clicks and
becomes natural. I still need to think about it very hard when I'm writing
it. Hence, a lot of the time I
Title: RE: Perl - Was unix time conversion function
Are you sure? It's written in C and is supposed to be relatively portable. I've not tried it on other platforms but, in addition to HP-UX and AIX, Python runs on: AS/400; Solaris; OS/2; Amiga; AROS; BeOS; PalmOS; QNX; VMS; VxWorks; Sony
On Tue, Jan 28, 2003 at 09:59:46AM -0800, Orr, Steve wrote:
If you can do it in Perl chances are you can do it better in Python and
someone can actually read and understand it without a PHD... AKA Perl Helper
Dweeb. :-) In Perl it takes effort to write readable code but it comes
naturally in
On Tue, 2003-01-28 at 17:49, Tim Bunce wrote:
If you can do it in Perl chances are someone already has...
Check it out:
http://search.cpan.org
Just search for something...
I think you'll find that the same is very rapidly becoming as true for
Python.
I'm not trying to get into
[EMAIL PROTECTED]
cc:
Subject:Perl - Was unix time conversion function
Cary I once thought I wanted to do some Perl coding... So I bought a
book and started to play with it. It made my head bleed... literally I had
little droplets of blood emerging from my head
Title: unix time conversion function
Anybody got a handy little function to
convert a standard unix seconds-since-Jan-1970 epoch
time (stored as a number) to a readable date?
It would save me a lot of time not having to re-invent the
wheel.
Matt
Matt Adams - GE Appliances
Title: RE: unix time conversion function
Nevermind,
Once I thought about it for more than 30 seconds,
I got it.
TO_DATE('01/01/1970','MM/DD/') + SECONDS / 86400
easy as 3.141592654
Matt Adams - GE Appliances - [EMAIL PROTECTED]
My computer beat me at chess, but I won
when
Title: unix time conversion function
Kinda...you can change the year to 1970 if you want, this also converts
to minutes, not seconds. It is a really ugly function but it seems to
work. You could always use perl.
function f_minutes { # Funky function I use to calculate
the number of minutes
Title: unix time conversion function
At the risk of stating the obvious, doing
it in Perl looks like this:
#!/usr/bin/perl
use Date::Format qw(time2str);
my $t = 1043447100; # for example
print time2str(%T %A %d %B %Y,
$t), \n;
Cary Millsap
Hotsos Enterprises, Ltd.
http
Title: unix time conversion function
Yes I knew it was easier in perl, I prefer to
distribute a single script whenever possible and I write pretty much everything
in shell. However, I just figured out a trick to put the perl directlyin
my .ksh scripts (see the post I posted a few minutes ago
34 matches
Mail list logo