using a directory name as a command line argument

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

  1. #1

    Default Re: using a directory name as a command line argument

    On Mon, 11 Aug 2003 19:31:26 -0700, Chad wrote:
    > trying to do a basic opendir DH,$dir or die.......
    >
    > how do I get $dir to equal an argument invoked at the command line
    >
    > Thanks
    > Chad
    Check out @ARGV
    - Brian
    Brian Harnish Guest

  2. Similar Questions and Discussions

    1. How to take command line argument and use it to run an upgrade script.
      I'm a perl newby. I'm looking on taking a command line argument from STDIN and use it for input to a script that upgrades software. Any examples...
    2. RUN/execute a Command-Line command from an ASP page
      Hi, I need to RUN/execute a Command-Line command from an ASP page. This is the command: sse45.exe -i k:\o\2.wmv -o k:\o\2.shh -w 128 -df 0 -m 2...
    3. RUN/execute a Command-Line command from an ASP page.
      Hi, I need to RUN/execute a Command-Line command from an ASP page. This is the command: sse45.exe -i k:\o\2.wmv -o k:\o\2.shh -w 128 -df 0 -m 2...
    4. How to use Command line argument --help or --debug ???
      using getopts we can get the arguments like -h, -s etc... but how to get --help or --debug??? Any body knowing it...plz let me know asap Thnx...
    5. Command line to start Elements in specific directory
      Is there a command line option to start Elements with the contents of a specific file folder being displayed?
  3. #2

    Default Re: using a directory name as a command line argument

    Chad <chussung@operamail.com> wrote:
    > how do I get $dir to equal an argument invoked at the command line

    $dir= $ARGV[0];


    --
    Tad McClellan SGML consulting
    [email]tadmc@augustmail.com[/email] Perl programming
    Fort Worth, Texas
    Tad McClellan 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