I have installed strawberry perl in windows XP, i am studying about Perl file handle and streams, for this i took a look at C,C++ file handle i.e print,scan,printf,scanf and i know keyboard and screen as streams for C,C++.I am confused that to start with C,C++, i used to name a program by clicking new and then by naming a program i click "save as" in both C,C++ and then i open a that named file for writing a program into it and at last i click save and whenever i need to run that program i open that program, but how i can start with perl? i am studying file handle, and how streams are similar to file handle so i am studying it from perlopentut,where i got confused beacuse i couldn't use the examples given there to write a perl program. i have opened strawberry perl in windows and from the command line interface i tried to create perl program, i think this is wrong. Please help me. i am trying to understand creating,opening,editing,closing a perl program, then i would know what is the function of filehandle, do it retain data of file opened by function open or what it does and i think streams are similar as in C,C++ in perl also ?


In reply to how to create a perl program using filehandle and streams ? by Monk_perl

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.