in reply to Use command line argument in script

WARNING! OP has changed the content of the post (  s/$ARGV[1]/$ARGV[0]/)since replies were provided. OP advised against that practice by way of message, consideration and this node.

Original content (sic): I tried using $days = $ARGV1, not sure but it doesn't work.



Questions containing the words "doesn't work" (or their moral equivalent) will usually get a downvote from me unless accompanied by:
  1. code
  2. verbatim error and/or warning messages
  3. a coherent explanation of what "doesn't work actually means.

Replies are listed 'Best First'.
Re^2: Use command line argument in script
by homer4all (Acolyte) on Dec 19, 2014 at 16:52 UTC
    Oops sorry, actually forgot to mention that in my earlier comment. I updated code to show what exact syntax I'm using rather than providing that in comment and flooding this page. Will keep this in mind.
      Error message I get is
      use of unitialized value in print at line