Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Hi Monks, I am learning perl but come from an ICL vme background so our scl scripting is although in some ways similar the way it handles files is easy. How can i write a script that access a filename supplied by the user as the only parameter? then read each line and put the csv fields into variables. if anyone has any quick code they could let me use i would be grateful i just need to crack this and the rest should be easy i hope

In reply to Putting a filename as a parameter to a perl script then reading from it in the code? by Mikeyb0y

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
    [hippo]: Download from https://metacpan. org/pod/CPAN and follow the instructions.
    [Spenser]: I'm unable to install modules using cpan. it's not installed
    [choroba]: What OS or distribution?
    [hippo]: But as shmem says, CPAN has been in core since 5.004 so unless you are on a packaged system you probably have it installed already.
    [Spenser]: It's a stripped down version on a NAS device.
    [Spenser]: It's frustrating
    [Spenser]: Perl 5.10.0
    [Spenser]: It uses opkg to install software
    [choroba]: 5.10.1 would be much better

    How do I use this? | Other CB clients
    Other Users?
    Others rifling through the Monastery: (8)
    As of 2018-03-17 12:38 GMT
    Find Nodes?
      Voting Booth?
      When I think of a mole I think of:

      Results (224 votes). Check out past polls.