wakatana,

I'm a beginner in perl myself, but I can answer some of the questions you've asked.

First off, there are several online tutorials on perl. Try this link before starting, or try downloading the relative chapters of 'Beginning Perl' from the perl website. Also, try the search bar first before asking such a huge question.

|| and the or operator both represent he same thing, only || has a a higher priority than or. If the code before the || returns a true value, i.e. is executed properly, then any thing after the || is ignored. Otherwise, it is executed. Try the piece of code below.

#!/usr/bin/perl 0 or print "0:false\n"; 1 or print "1:false\n"; 0 or die "Error\n"; print"Not executed";

2nd, -> and => are completely unrelated. See hashes and references. Also look at Object oriented programming in perl(OOP), and modules. Do NOT try programming in perl without first understanding hashes.

Scroll to the bottom of the SoPW page to post a question

Rohit Raghunathan

In reply to Re: win32 OLE in deeper details by rohit_raghu
in thread win32 OLE in deeper details by wakatana

Title:
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, details, 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, summary, 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.