[31458] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 2710 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Dec 8 14:09:38 2009

Date: Tue, 8 Dec 2009 11:09:07 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Tue, 8 Dec 2009     Volume: 11 Number: 2710

Today's topics:
        Clojure based objects <rahulsinner@gmail.com>
    Re: Clojure based objects <rahulsinner@gmail.com>
    Re: Clojure based objects <rahulsinner@gmail.com>
    Re: Clojure based objects <rahulsinner@gmail.com>
    Re: Clojure based objects <rahulsinner@gmail.com>
    Re: Extract file properties from Office documents <marcusdau@googlemail.com>
    Re: Finding expiration date of cookie <smallpond@juno.com>
    Re: Finding expiration date of cookie <jwcarlton@gmail.com>
    Re: How to add system user accounts with perl? <tzz@lifelogs.com>
    Re: Must have modules <c7eqjyg02@sneakemail.com>
        Perl to Java bytecode <cartercc@gmail.com>
        Posting Guidelines for comp.lang.perl.misc ($Revision:  tadmc@seesig.invalid
        Unblessed reference. <justin.0911@purestblue.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Tue, 8 Dec 2009 03:46:56 -0800 (PST)
From: rahul <rahulsinner@gmail.com>
Subject: Clojure based objects
Message-Id: <c5021490-4b4f-43b5-a183-171fdf8fb437@m33g2000pri.googlegroups.com>

I am implementing a clojure based objects. This is my first draft.
http://rahulkmr.pastebin.com/m6e30ac7e

It's quite trivial but it still implements encapsulation, inheritance
and polymorphism(though not correctly). I am  stumped by  1 that
appears when a base class method is called. Can anyone help me with
correcting this?



------------------------------

Date: Tue, 8 Dec 2009 03:51:28 -0800 (PST)
From: rahul <rahulsinner@gmail.com>
Subject: Re: Clojure based objects
Message-Id: <ea53af6f-32cd-4866-b088-6fa858394141@z10g2000prh.googlegroups.com>

On Dec 8, 4:46=A0pm, rahul <rahulsin...@gmail.com> wrote:
> I am implementing a clojure based objects. This is my first draft.http://=
rahulkmr.pastebin.com/m6e30ac7e
>
> It's quite trivial but it still implements encapsulation, inheritance
> and polymorphism(though not correctly). I am =A0stumped by =A01 that
> appears when a base class method is called. Can anyone help me with
> correcting this?

Don't bother about the error. That is line number 37. Instead of print
$foo->('dump')(), it should say $foo->('dump')(). But I would still be
interested in comments on the code and what people think about using
clojures for objects.


------------------------------

Date: Tue, 8 Dec 2009 03:58:44 -0800 (PST)
From: rahul <rahulsinner@gmail.com>
Subject: Re: Clojure based objects
Message-Id: <7697d983-6884-4383-ba0a-885f46735593@o9g2000prg.googlegroups.com>

On Dec 8, 4:51=A0pm, rahul <rahulsin...@gmail.com> wrote:
> On Dec 8, 4:46=A0pm, rahul <rahulsin...@gmail.com> wrote:
>
> > I am implementing a clojure based objects. This is my first draft.http:=
//rahulkmr.pastebin.com/m6e30ac7e
>
> > It's quite trivial but it still implements encapsulation, inheritance
> > and polymorphism(though not correctly). I am =A0stumped by =A01 that
> > appears when a base class method is called. Can anyone help me with
> > correcting this?
>
> Don't bother about the error. That is line number 37. Instead of print
> $foo->('dump')(), it should say $foo->('dump')(). But I would still be
> interested in comments on the code and what people think about using
> clojures for objects.

Here is a revised version.
http://rahulkmr.pastebin.com/m6e30ac7e



------------------------------

Date: Tue, 8 Dec 2009 04:00:52 -0800 (PST)
From: rahul <rahulsinner@gmail.com>
Subject: Re: Clojure based objects
Message-Id: <217a77a0-798b-4dae-b0c9-f7bfebb6e6a6@r24g2000prf.googlegroups.com>

On Dec 8, 4:51=A0pm, rahul <rahulsin...@gmail.com> wrote:
> On Dec 8, 4:46=A0pm, rahul <rahulsin...@gmail.com> wrote:
>
> > I am implementing a clojure based objects. This is my first draft.http:=
//rahulkmr.pastebin.com/m6e30ac7e
>
> > It's quite trivial but it still implements encapsulation, inheritance
> > and polymorphism(though not correctly). I am =A0stumped by =A01 that
> > appears when a base class method is called. Can anyone help me with
> > correcting this?
>
> Don't bother about the error. That is line number 37. Instead of print
> $foo->('dump')(), it should say $foo->('dump')(). But I would still be
> interested in comments on the code and what people think about using
> clojures for objects.

Here is a revised version.
http://pastebin.com/mddb8154


------------------------------

Date: Tue, 8 Dec 2009 04:03:29 -0800 (PST)
From: rahul <rahulsinner@gmail.com>
Subject: Re: Clojure based objects
Message-Id: <cafeb7bf-fd0b-4e20-973d-39178c95672c@f18g2000prf.googlegroups.com>

On Dec 8, 5:00=A0pm, rahul <rahulsin...@gmail.com> wrote:
> On Dec 8, 4:51=A0pm, rahul <rahulsin...@gmail.com> wrote:
>
> > On Dec 8, 4:46=A0pm, rahul <rahulsin...@gmail.com> wrote:
>
> > > I am implementing a clojure based objects. This is my first draft.htt=
p://rahulkmr.pastebin.com/m6e30ac7e
>
> > > It's quite trivial but it still implements encapsulation, inheritance
> > > and polymorphism(though not correctly). I am =A0stumped by =A01 that
> > > appears when a base class method is called. Can anyone help me with
> > > correcting this?
>
> > Don't bother about the error. That is line number 37. Instead of print
> > $foo->('dump')(), it should say $foo->('dump')(). But I would still be
> > interested in comments on the code and what people think about using
> > clojures for objects.
>
> Here is a revised version.http://pastebin.com/mddb8154

And yes, it should be closure based object. I made a typo(have been
dabbling with both Clojure and closures lately).


------------------------------

Date: Mon, 7 Dec 2009 22:23:42 -0800 (PST)
From: Marcus Dau <marcusdau@googlemail.com>
Subject: Re: Extract file properties from Office documents
Message-Id: <60f4d486-377c-431d-a9af-60cf16b25cd3@a32g2000yqm.googlegroups.com>

Now I'm using Inline::Java with the Java classes from Apache POI and
iText to read all the information I need.

This is not a perfect way, but with pure Perl modules I didn't find a
way to get ALL the information, only parts of it.

Thx!

Marcus


------------------------------

Date: Mon, 7 Dec 2009 20:19:15 -0800 (PST)
From: smallpond <smallpond@juno.com>
Subject: Re: Finding expiration date of cookie
Message-Id: <ffc6c850-7fda-4273-acac-92f89a7012bc@m3g2000yqf.googlegroups.com>

On Dec 7, 8:27=A0pm, Jason Carlton <jwcarl...@gmail.com> wrote:
> Is there any way to find the expiration date of a set cookie?
>
> I'm setting a cookie in one script, and the expiration date is set
> dynamically. In another script, I want to set another cookie, and want
> to match the expiration date to the one set in the earlier script.
>

perldoc CGI


------------------------------

Date: Tue, 8 Dec 2009 01:07:15 -0800 (PST)
From: Jason Carlton <jwcarlton@gmail.com>
Subject: Re: Finding expiration date of cookie
Message-Id: <c48380c7-77d4-40a8-bb59-195ba76ad321@r5g2000yqb.googlegroups.com>

On Dec 7, 11:19=A0pm, smallpond <smallp...@juno.com> wrote:
> On Dec 7, 8:27=A0pm, Jason Carlton <jwcarl...@gmail.com> wrote:
>
> > Is there any way to find the expiration date of a set cookie?
>
> > I'm setting a cookie in one script, and the expiration date is set
> > dynamically. In another script, I want to set another cookie, and want
> > to match the expiration date to the one set in the earlier script.
>
> perldoc CGI

I've looked there, and didn't see any way to retrieve this
information. I know how to set it (obviously), just not retrieve it.

Can you be more specific?


------------------------------

Date: Tue, 08 Dec 2009 12:53:55 -0600
From: Ted Zlatanov <tzz@lifelogs.com>
Subject: Re: How to add system user accounts with perl?
Message-Id: <87hbs170vw.fsf@lifelogs.com>

On Mon, 07 Dec 2009 12:38:16 -0800 Wanna-Be Sys Admin <sysadmin@example.com> wrote: 

WSA> I was suggesting different methods, and said that you should likely use
WSA> the system tools.  However, there's absolutely nothing wrong with
WSA> rolling out your own solution, provided you know what you're doing,
WSA> implement proper file locking, etc.  But, the fact the OP asked, surely
WSA> means they don't know and if they use an existing script someone else
WSA> created, they may take the risk of using something that doesn't do what
WSA> they hope or need it to.  But, the subtleties are simple enough to deal
WSA> with, provided there's the experience and knowledge of exactly what you
WSA> need to do, and how.  That all said, with the OP's question, I would
WSA> agree they probably shouldn't try, at this point anyway.

If you hedged that paragraph any better you'd need a professional gardener.

Ted


------------------------------

Date: Tue, 8 Dec 2009 00:33:34 -0800 (PST)
From: ilovelinux <c7eqjyg02@sneakemail.com>
Subject: Re: Must have modules
Message-Id: <95b177a3-ebe7-48ae-811f-a94eab467d36@d10g2000yqh.googlegroups.com>

On 4 dec, 20:38, projecktzero <projecktz...@yahoo.com> wrote:
> Out of curiosity, what modules do you find yourself always installing
> when you have a fresh install of Perl? I primarily do web development,
> and I'd like to know which modules you web devs rely on. Is there a
> list of the most popular modules on CPAN?

I keep installing these modules, wishing they were in the standard
distributions of Perl:

Template
Inline
Inline::TT
Parse::RecDescent
IPC::Run3

but it depends on your needs, I think.


------------------------------

Date: Tue, 8 Dec 2009 10:46:32 -0800 (PST)
From: ccc31807 <cartercc@gmail.com>
Subject: Perl to Java bytecode
Message-Id: <820fb894-0355-4ee4-8ca0-6444fcb8ab24@c3g2000yqd.googlegroups.com>

Searching the archives, I found old posts, but nothing recent. Is
there anything going on with Perl to match Scala or Clojure or Jython,
i.e., a compilation targeted to the JVM?

Thanks, CC.


------------------------------

Date: Tue, 08 Dec 2009 02:13:16 -0600
From: tadmc@seesig.invalid
Subject: Posting Guidelines for comp.lang.perl.misc ($Revision: 1.9 $)
Message-Id: <zeSdnQuMsPoBl4PWnZ2dnUVZ_gidnZ2d@giganews.com>

Outline
   Before posting to comp.lang.perl.misc
      Must
       - Check the Perl Frequently Asked Questions (FAQ)
       - Check the other standard Perl docs (*.pod)
      Really Really Should
       - Lurk for a while before posting
       - Search a Usenet archive
      If You Like
       - Check Other Resources
   Posting to comp.lang.perl.misc
      Is there a better place to ask your question?
       - Question should be about Perl, not about the application area
      How to participate (post) in the clpmisc community
       - Carefully choose the contents of your Subject header
       - Use an effective followup style
       - Speak Perl rather than English, when possible
       - Ask perl to help you
       - Do not re-type Perl code
       - Provide enough information
       - Do not provide too much information
       - Do not post binaries, HTML, or MIME
      Social faux pas to avoid
       - Asking a Frequently Asked Question
       - Asking a question easily answered by a cursory doc search
       - Asking for emailed answers
       - Beware of saying "doesn't work"
       - Sending a "stealth" Cc copy
      Be extra cautious when you get upset
       - Count to ten before composing a followup when you are upset
       - Count to ten after composing and before posting when you are upset
-----------------------------------------------------------------

Posting Guidelines for comp.lang.perl.misc ($Revision: 1.9 $)
    This newsgroup, commonly called clpmisc, is a technical newsgroup
    intended to be used for discussion of Perl related issues (except job
    postings), whether it be comments or questions.

    As you would expect, clpmisc discussions are usually very technical in
    nature and there are conventions for conduct in technical newsgroups
    going somewhat beyond those in non-technical newsgroups.

    The article at:

        http://www.catb.org/~esr/faqs/smart-questions.html

    describes how to get answers from technical people in general.

    This article describes things that you should, and should not, do to
    increase your chances of getting an answer to your Perl question. It is
    available in POD, HTML and plain text formats at:

     http://www.rehabitation.com/clpmisc.shtml

    For more information about netiquette in general, see the "Netiquette
    Guidelines" at:

     http://andrew2.andrew.cmu.edu/rfc/rfc1855.html

    A note to newsgroup "regulars":

       Do not use these guidelines as a "license to flame" or other
       meanness. It is possible that a poster is unaware of things
       discussed here.  Give them the benefit of the doubt, and just
       help them learn how to post, rather than assume that they do 
       know and are being the "bad kind" of Lazy.

    A note about technical terms used here:

       In this document, we use words like "must" and "should" as
       they're used in technical conversation (such as you will
       encounter in this newsgroup). When we say that you *must* do
       something, we mean that if you don't do that something, then
       it's unlikely that you will benefit much from this group.
       We're not bossing you around; we're making the point without
       lots of words.

    Do *NOT* send email to the maintainer of these guidelines. It will be
    discarded unread. The guidelines belong to the newsgroup so all
    discussion should appear in the newsgroup. I am just the secretary that
    writes down the consensus of the group.

Before posting to comp.lang.perl.misc
  Must
    This section describes things that you *must* do before posting to
    clpmisc, in order to maximize your chances of getting meaningful replies
    to your inquiry and to avoid getting flamed for being lazy and trying to
    have others do your work.

    The perl distribution includes documentation that is copied to your hard
    drive when you install perl. Also installed is a program for looking
    things up in that (and other) documentation named 'perldoc'.

    You should either find out where the docs got installed on your system,
    or use perldoc to find them for you. Type "perldoc perldoc" to learn how
    to use perldoc itself. Type "perldoc perl" to start reading Perl's
    standard documentation.

    Check the Perl Frequently Asked Questions (FAQ)
        Checking the FAQ before posting is required in Big 8 newsgroups in
        general, there is nothing clpmisc-specific about this requirement.
        You are expected to do this in nearly all newsgroups.

        You can use the "-q" switch with perldoc to do a word search of the
        questions in the Perl FAQs.

    Check the other standard Perl docs (*.pod)
        The perl distribution comes with much more documentation than is
        available for most other newsgroups, so in clpmisc you should also
        see if you can find an answer in the other (non-FAQ) standard docs
        before posting.

    It is *not* required, or even expected, that you actually *read* all of
    Perl's standard docs, only that you spend a few minutes searching them
    before posting.

    Try doing a word-search in the standard docs for some words/phrases
    taken from your problem statement or from your very carefully worded
    "Subject:" header.

  Really Really Should
    This section describes things that you *really should* do before posting
    to clpmisc.

    Lurk for a while before posting
        This is very important and expected in all newsgroups. Lurking means
        to monitor a newsgroup for a period to become familiar with local
        customs. Each newsgroup has specific customs and rituals. Knowing
        these before you participate will help avoid embarrassing social
        situations. Consider yourself to be a foreigner at first!

    Search a Usenet archive
        There are tens of thousands of Perl programmers. It is very likely
        that your question has already been asked (and answered). See if you
        can find where it has already been answered.

        One such searchable archive is:

         http://groups.google.com/advanced_search

  If You Like
    This section describes things that you *can* do before posting to
    clpmisc.

    Check Other Resources
        You may want to check in books or on web sites to see if you can
        find the answer to your question.

        But you need to consider the source of such information: there are a
        lot of very poor Perl books and web sites, and several good ones
        too, of course.

Posting to comp.lang.perl.misc
    There can be 200 messages in clpmisc in a single day. Nobody is going to
    read every article. They must decide somehow which articles they are
    going to read, and which they will skip.

    Your post is in competition with 199 other posts. You need to "win"
    before a person who can help you will even read your question.

    These sections describe how you can help keep your article from being
    one of the "skipped" ones.

  Is there a better place to ask your question?
    Question should be about Perl, not about the application area
        It can be difficult to separate out where your problem really is,
        but you should make a conscious effort to post to the most
        applicable newsgroup. That is, after all, where you are the most
        likely to find the people who know how to answer your question.

        Being able to "partition" a problem is an essential skill for
        effectively troubleshooting programming problems. If you don't get
        that right, you end up looking for answers in the wrong places.

        It should be understood that you may not know that the root of your
        problem is not Perl-related (the two most frequent ones are CGI and
        Operating System related), so off-topic postings will happen from
        time to time. Be gracious when someone helps you find a better place
        to ask your question by pointing you to a more applicable newsgroup.

  How to participate (post) in the clpmisc community
    Carefully choose the contents of your Subject header
        You have 40 precious characters of Subject to win out and be one of
        the posts that gets read. Don't waste them. Take care while
        composing them, they are the key that opens the door to getting an
        answer.

        Spend them indicating what aspect of Perl others will find if they
        should decide to read your article.

        Do not spend them indicating "experience level" (guru, newbie...).

        Do not spend them pleading (please read, urgent, help!...).

        Do not spend them on non-Subjects (Perl question, one-word
        Subject...)

        For more information on choosing a Subject see "Choosing Good
        Subject Lines":

         http://www.cpan.org/authors/id/D/DM/DMR/subjects.post

        Part of the beauty of newsgroup dynamics, is that you can contribute
        to the community with your very first post! If your choice of
        Subject leads a fellow Perler to find the thread you are starting,
        then even asking a question helps us all.

    Use an effective followup style
        When composing a followup, quote only enough text to establish the
        context for the comments that you will add. Always indicate who
        wrote the quoted material. Never quote an entire article. Never
        quote a .signature (unless that is what you are commenting on).

        Intersperse your comments *following* each section of quoted text to
        which they relate. Unappreciated followup styles are referred to as
        "top-posting", "Jeopardy" (because the answer comes before the
        question), or "TOFU" (Text Over, Fullquote Under).

        Reversing the chronology of the dialog makes it much harder to
        understand (some folks won't even read it if written in that style).
        For more information on quoting style, see:

         http://web.presby.edu/~nnqadmin/nnq/nquote.html

    Speak Perl rather than English, when possible
        Perl is much more precise than natural language. Saying it in Perl
        instead will avoid misunderstanding your question or problem.

        Do not say: I have variable with "foo\tbar" in it.

        Instead say: I have $var = "foo\tbar", or I have $var = 'foo\tbar',
        or I have $var = <DATA> (and show the data line).

    Ask perl to help you
        You can ask perl itself to help you find common programming mistakes
        by doing two things: enable warnings (perldoc warnings) and enable
        "strict"ures (perldoc strict).

        You should not bother the hundreds/thousands of readers of the
        newsgroup without first seeing if a machine can help you find your
        problem. It is demeaning to be asked to do the work of a machine. It
        will annoy the readers of your article.

        You can look up any of the messages that perl might issue to find
        out what the message means and how to resolve the potential mistake
        (perldoc perldiag). If you would like perl to look them up for you,
        you can put "use diagnostics;" near the top of your program.

    Do not re-type Perl code
        Use copy/paste or your editor's "import" function rather than
        attempting to type in your code. If you make a typo you will get
        followups about your typos instead of about the question you are
        trying to get answered.

    Provide enough information
        If you do the things in this item, you will have an Extremely Good
        chance of getting people to try and help you with your problem!
        These features are a really big bonus toward your question winning
        out over all of the other posts that you are competing with.

        First make a short (less than 20-30 lines) and *complete* program
        that illustrates the problem you are having. People should be able
        to run your program by copy/pasting the code from your article. (You
        will find that doing this step very often reveals your problem
        directly. Leading to an answer much more quickly and reliably than
        posting to Usenet.)

        Describe *precisely* the input to your program. Also provide example
        input data for your program. If you need to show file input, use the
        __DATA__ token (perldata.pod) to provide the file contents inside of
        your Perl program.

        Show the output (including the verbatim text of any messages) of
        your program.

        Describe how you want the output to be different from what you are
        getting.

        If you have no idea at all of how to code up your situation, be sure
        to at least describe the 2 things that you *do* know: input and
        desired output.

    Do not provide too much information
        Do not just post your entire program for debugging. Most especially
        do not post someone *else's* entire program.

    Do not post binaries, HTML, or MIME
        clpmisc is a text only newsgroup. If you have images or binaries
        that explain your question, put them in a publically accessible
        place (like a Web server) and provide a pointer to that location. If
        you include code, cut and paste it directly in the message body.
        Don't attach anything to the message. Don't post vcards or HTML.
        Many people (and even some Usenet servers) will automatically filter
        out such messages. Many people will not be able to easily read your
        post. Plain text is something everyone can read.

  Social faux pas to avoid
    The first two below are symptoms of lots of FAQ asking here in clpmisc.
    It happens so often that folks will assume that it is happening yet
    again. If you have looked but not found, or found but didn't understand
    the docs, say so in your article.

    Asking a Frequently Asked Question
        It should be understood that you may have missed the applicable FAQ
        when you checked, which is not a big deal. But if the Frequently
        Asked Question is worded similar to your question, folks will assume
        that you did not look at all. Don't become indignant at pointers to
        the FAQ, particularly if it solves your problem.

    Asking a question easily answered by a cursory doc search
        If folks think you have not even tried the obvious step of reading
        the docs applicable to your problem, they are likely to become
        annoyed.

        If you are flamed for not checking when you *did* check, then just
        shrug it off (and take the answer that you got).

    Asking for emailed answers
        Emailed answers benefit one person. Posted answers benefit the
        entire community. If folks can take the time to answer your
        question, then you can take the time to go get the answer in the
        same place where you asked the question.

        It is OK to ask for a *copy* of the answer to be emailed, but many
        will ignore such requests anyway. If you munge your address, you
        should never expect (or ask) to get email in response to a Usenet
        post.

        Ask the question here, get the answer here (maybe).

    Beware of saying "doesn't work"
        This is a "red flag" phrase. If you find yourself writing that,
        pause and see if you can't describe what is not working without
        saying "doesn't work". That is, describe how it is not what you
        want.

    Sending a "stealth" Cc copy
        A "stealth Cc" is when you both email and post a reply without
        indicating *in the body* that you are doing so.

  Be extra cautious when you get upset
    Count to ten before composing a followup when you are upset
        This is recommended in all Usenet newsgroups. Here in clpmisc, most
        flaming sub-threads are not about any feature of Perl at all! They
        are most often for what was seen as a breach of netiquette. If you
        have lurked for a bit, then you will know what is expected and won't
        make such posts in the first place.

        But if you get upset, wait a while before writing your followup. I
        recommend waiting at least 30 minutes.

    Count to ten after composing and before posting when you are upset
        After you have written your followup, wait *another* 30 minutes
        before committing yourself by posting it. You cannot take it back
        once it has been said.

AUTHOR
    Tad McClellan and many others on the comp.lang.perl.misc newsgroup.

-- 
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"


------------------------------

Date: Tue, 08 Dec 2009 18:45:19 -0000
From: Justin C <justin.0911@purestblue.com>
Subject: Unblessed reference.
Message-Id: <5506.4b1e9ebf.b883f@zem>


I'm using Spreadsheet::WriteExcel, and (I think) I've created a
reference to the worksheet. When I try to use this elsewhere I get:
Can't call method ... on unblessed reference at ...

This is the minumum I've been able to cut the code down to (sorry it's
not shorter). The problem line is 26. As per the Spreadsheet::WriteExcel
documentation I've created the object, and it's a reference to that
object that I've passed from a subroutine to Main:: to pass on to other
subroutines.

I'm slowly getting to grips with references, I seem to be OK (mostly)
with scalar, array, and harh refs, but what is this? An object
reference? I'm working on it but I haven't got it yet. Anyway, here's
the code. 

#!/usr/bin/perl

use warnings;
use strict;
use Spreadsheet::WriteExcel;

my ($worksheet, $format) = create_excel_file();

artist_chart() ;

sub artist_chart {
    my ($position, $last_month, $artist) = ('7', '4', 'Banksy');
    populate_spreadsheet(0, $position, $last_month, $artist);
}
sub create_excel_file {
    my $fname = "/var/local/chart/boris.xls";
    my $workbook = Spreadsheet::WriteExcel->new($fname);
    my $ws = $workbook->add_worksheet();
    my $format = set_sheet_table_borders($workbook);
    return (\$ws, \$format);
}
sub populate_spreadsheet {
    my $start_col = shift;
    my $items = \@_;
    my $row = $_[0] + 1;
    $worksheet->write_row($row,$start_col,$items,$format);
}
sub set_sheet_table_borders {
    my $wb = shift;
    my $format = $wb->add_format(
	border => 7,
    );
    return $format;
}

__END__


Thank you for any help you can give with this.

	Justin.

-- 
Justin C, by the sea.


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests. 

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V11 Issue 2710
***************************************


home help back first fref pref prev next nref lref last post