Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
If you are writing "normal" web applications, that interact with MySQL (or some other RDBMS) you usually do not see the difference. I've been using Windows and 99.9% of my applications are deployed on Linux or FreeBSD.

Virtually only thing that was making problems to me is the newline character. You only need to make sure that first line (#!usr/bin/perl or similar) is on it's own. And since Windows and Linux have different line endings unless you save files in Unix mode it won't be the case.

As I'm using CGI::Application and many of it's plug ins - that aren't widely available on the plain hostings here's what I'm using :

In my root folder (htdocs or www usually) I have file which just calls CGI::Application::Dispatch run method. All other files are inside folder named by the application (say AppName). That folder is protected with .htaccess (just write "deny from all" inside of it). And inside of it I have :

Foundation/ (modules inherithed by others)
Foundation/ (this one is use base '' in all Runmodes, and itself inhretihs from CGI::App)
Config/ (some config files)
Cron/ (some scripts run by cron, delete old sessions ...etc)
CAPN/ (inside of it, there are all the modules that are from CPAN, but aren't available on the server. You need to add it to the @INC in the file)

Overall it works pretty good. Once I set it up on the server, I only upload files inside Runmodes and Templates folders (most of the time).

O yeah, templates are just plain HTML + HTML::Template tags, but are named *.dwt and not *.tmpl so Dreamweaver would open them nicely with WYSIWYG part working too.

Have you tried freelancing? Check out Scriptlance - I work there.

In reply to Re: Cross platform coding advice by techcode
in thread Cross platform coding advice by k_rajesh

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    Domain Nodelet?
    and the web crawler heard nothing...

    How do I use this?Last hourOther CB clients
    Other Users?
    Others examining the Monastery: (6)
    As of 2024-07-17 10:05 GMT
    Find Nodes?
      Voting Booth?

      No recent polls found

      erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.