On Thu, 19 Oct 2006 09:47:37 +1300 [EMAIL PROTECTED] wrote: > Hi all, > > Just want to know what really is the difference when running a script as > > . myscript or simply myscript, i.e. the first one with a dot infront of it and > the other one without a dot. > > Or does it matter only when invoking the script from within a script? > > Any thoughts will be very much appreciated. Thanks in advance.
I don't think you have got that right. Assuming you are on a *nux type system and the full path to your script is /home/user/bin/myscript 1. If my script is an executable script, and you are in the /home/user/bin/ directory, it can only be executed by typing at the prompt ./myscript 2. If /home/user/bin/ is part of your environment path, and you are outside the /home/user/bin/ directory, then typing "myscript" at the prompt will execute it 3. If myscript does not have executeable permissions, then you can execute it by issuing "perl /home/user/bin/myscript" at the prompt, or just "perl myscript" if /home/user/bin is your cwd HTH Owen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>