Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > PERL 'pwd' equivalent???

Reply
Thread Tools

PERL 'pwd' equivalent???

 
 
kjstandish@gmail.com
Guest
Posts: n/a
 
      09-05-2006
I am a novice with PERL and am writing a script that will be used on
both UNIX and Windows platforms. I need a PERL function that will
return the current path (similar to 'pwd' in UNIX) so I can use full
path info. in filenames etc. Please advise...thanks in advance!

 
Reply With Quote
 
 
 
 
Jürgen Exner
Guest
Posts: n/a
 
      09-05-2006
wrote:
> I am a novice with PERL and am writing a script that will be used on
> both UNIX and Windows platforms. I need a PERL function that will
> return the current path (similar to 'pwd' in UNIX) so I can use full
> path info. in filenames etc. Please advise...thanks in advance!


See "perldoc Cwd"

jue


 
Reply With Quote
 
 
 
 
kjstandish@gmail.com
Guest
Posts: n/a
 
      09-05-2006
Perfect...thanks!


Jürgen Exner wrote:
> wrote:
> > I am a novice with PERL and am writing a script that will be used on
> > both UNIX and Windows platforms. I need a PERL function that will
> > return the current path (similar to 'pwd' in UNIX) so I can use full
> > path info. in filenames etc. Please advise...thanks in advance!

>
> See "perldoc Cwd"
>
> jue


 
Reply With Quote
 
John Bokma
Guest
Posts: n/a
 
      09-05-2006
wrote:

> Perfect...thanks!


Write replies, even if they are short, *under* the part you're replying
to, and remove all lines that are no longer needed to provide a context to
understand your reply [1].

Furthermore: perl is the program that reads, compiles, and executes your
program written in Perl.

PERL is something different [2]


[1] <http://johnbokma.com/mexit/2006/04/11/how-to-reply.html>

[2]
<http://answers.com/topic/principal-exchange-rate-linked-security-perl>

--
John Experienced Perl programmer: http://castleamber.com/

Perl help, tutorials, and examples: http://johnbokma.com/perl/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 2.17 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? PerlFAQ Server Perl Misc 0 04-04-2011 10:00 PM
FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? PerlFAQ Server Perl Misc 0 02-27-2011 11:00 PM
FAQ 2.17 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? PerlFAQ Server Perl Misc 0 02-03-2011 11:00 AM
FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? PerlFAQ Server Perl Misc 0 01-23-2011 05:00 AM
Perl Help - Windows Perl script accessing a Unix perl Script dpackwood Perl 3 09-30-2003 02:56 AM



Advertisments
 



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