in reply to Re: Make code smaller and better
in thread Make code smaller and better

I am a beginner in Perl and I want to learn Perl for now without CPAN modules. I know is a lot of CPAN modules but I use them when I learn pure Perl.

Programing in Embperl and all questions are related to Embperl.
Excuse my bad English !!!

Replies are listed 'Best First'.
Re^3: Make code smaller and better
by Aristotle (Chancellor) on Mar 25, 2004 at 15:05 UTC
    That's like saying you want to learn joinery, but without cheating by using hammers.

    Makeshifts last the longest.

Re: Re: Re: Make code smaller and better
by soon_j (Scribe) on Mar 25, 2004 at 15:12 UTC

    So far it looks to me that the you have started to learn pure Perl on the basis of your ability to make such a simple program. As dragonchild had pointed out, you can use arrays in place of scalars... however this still is not enough to make your code shorter as you wanted.

    At this stage of your development, you should start using modules to make life easier. Your calendar program should be enough, so start moving on.

    But if you insist, try downloading a CPAN module for a calendar application. Try opening the module and learn from it. Learn how the author made his implementation.

      OK. You conviced me that I must use CPAN. I download some modules and will be learn from them. Thanks.

      Programing in Embperl and all questions are related to Embperl.
      Excuse my bad English !!!