Passing parameters to a script

Ask a Question related to PERL Beginners, Design and Development.

  1. #1

    Default Passing parameters to a script

    Pardon the probably simple question, but in trying to find the answer in
    my books, I have found far more about the subject than I can understand.

    How to pass a parameter (value? variable?) to a Perl script when you call
    it? I have managed to call a script from Kylix3 (once I downloaded a
    zillion bytes of patches and finally got them installed) and the calls
    work and return fine, but I don't know how to make the script accept a
    passed parameter.

    Or as another possibly simpler question, how to start a Perl script from
    the command line and give it a parameter(s)? Lots of info in my books
    about passing to and from subs, but so far nothing about how to pass to
    the main script itself. Or, more probably, I haven't recognised the way
    to do it yet.

    Thanks
    KRF

    KRF Guest

  2. Similar Questions and Discussions

    1. Passing Parameters To CFC
      I am testing how to return data from a CFC within Flash Forms. I have a simple <cfselect> tag that will hold data returned from a CFC. This CFC...
    2. Passing Parameters into NEW()
      Is there any way that the NEW() of a web service can accept parameters ? I would like to pass a boolean to indicate to the webservice that I am in...
    3. passing parameters to a script doesn't work
      Hi, I'm trying to pass parameters to a PHP script and it's not working. Whilst this is the first time I've tried to use this, I'm basically...
    4. Help Passing Parameters
      Before going to the third script I'd suggest storing the variables in session variables. Here's how I generally do login scripts. Perhaps have...
    5. Passing parameters to a Perl Script from Command Line (Linux)
      Hi, I'm fairly new to both programming in shell script (linux) and in programming in perl. I need to pass a parameter to the perl script from...
  3. #2

    Default Re: Passing parameters to a script

    On Thu, 25 Sep 2003 18:38:57 -0500, KRF wrote:
    > Pardon the probably simple question, but in trying to find the answer in
    > my books, I have found far more about the subject than I can understand.
    >
    Never mind. Enough whacking away on the examples finally got it. Don't
    understand it but it works.

    KRF
    KRF Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139