Re: path names in a perl-script: a newbie-question regarding I-O convertions on OpenSuse Linux 11.3

2010-10-02 Thread Brandon McCaig
On Sat, Oct 2, 2010 at 11:40 AM, "jobst müller" wrote: > Hello Alex > > many thanks for the answer. > > well i put all to home > usr > perl /home/usr is a pretty strange path. Typically, the subdirectories of /home represent individual users' "home directory". For example, /home/jmüller, or /home

Re: path names in a perl-script: a newbie-question regarding I-O convertions on OpenSuse Linux 11.3

2010-10-02 Thread Jim Gibson
At 5:40 PM +0200 10/2/10, jobst müller wrote: Hello Alex many thanks for the answer. well i put all to home > usr > perl Please trim your replies and eliminate old material that is not relevant. Thanks. So here we go: i start them in the console like the following and get the following

Re: path names in a perl-script: a newbie-question regarding I-O convertions on OpenSuse Linux 11.3

2010-10-02 Thread jobst müller
directory at /usr/lib/perl5/site_perl/5.12.1/File/Find/Rule.pm line 594 i go crazy - what is wrong here!? Love to hear from you best regards -Ursprüngliche Nachricht- Von: "Alexey Mishustin" Gesendet: 02.10.2010 13:27:23 An: beginners@perl.org Betreff: Re: pat

Re: path names in a perl-script: a newbie-question regarding I-O convertions on OpenSuse Linux 11.3

2010-10-02 Thread Alexey Mishustin
2.10.2010, 15:22:03, Alexey Mishustin wrote: > 2.10.2010, 13:57:54, "jobst müller" wrote: >> #!/usr/bin/perl >> use strict; >> use warnings; >> use diagnostics; >> use File::Find::Rule; >> my @files = File::Find::Rule->file() >> ->name('*.html') >> ->in( 'home/usr/perl/html.files' ); ->in( '

Re: path names in a perl-script: a newbie-question regarding I-O convertions on OpenSuse Linux 11.3

2010-10-02 Thread Alexey Mishustin
2.10.2010, 13:57:54, "jobst müller" wrote: > #!/usr/bin/perl > use strict; > use warnings; > use diagnostics; > use File::Find::Rule; > my @files = File::Find::Rule->file() > ->name('*.html') > ->in( 'home/usr/perl/html.files' ); ->in( '/home/usr/perl/html.files' ); > foreach my $file(@files

Re: path names in a perl-script: a newbie-question regarding I-O convertions on OpenSuse Linux 11.3

2010-10-02 Thread jobst müller
ove to hear from you and appreciate any and all help! martin aka  floobee -Ursprüngliche Nachricht- Von: "Jim Gibson" Gesendet: 02.10.2010 02:44:54 An: beginners@perl.org Betreff: Re: path names in a perl-script: a newbie-question >At 1:29 AM +0200 10/2/10, jobst müller wrot

Re: path names in a perl-script: a newbie-question

2010-10-01 Thread Jim Gibson
At 1:29 AM +0200 10/2/10, jobst müller wrote: Hi all i am new to the list! i am new to Linux and new to PERL too. I am trying to get this perl script up and running. I have installed OpenSuse-Linux 11.3 What is wanted: I have a bunch of HTML-files, stored in a folder. with the Perl-Script

Re: PATH env variable and open()

2006-07-27 Thread Ken Foskey
On Wed, 2006-07-26 at 11:28 -0700, Travis Thornhill wrote: > Does anyone have any idea why setting $ENV{"PATH"} = "" would cause > the open() function to fail? The file I'm trying to open exists, and some > debug > printing shows that I'm in the directory where it exists. If that is literal

Re: PATH env variable and open()

2006-07-26 Thread JupiterHost.Net
Travis Thornhill wrote: Does anyone have any idea why setting $ENV{"PATH"} = "" would cause Are you running setuid or in taint mode by chance? the open() function to fail? The file I'm trying to open exists, and some debug open(...) or die "open failed becaause: $!"; printing shows

Re: Path problem

2005-04-06 Thread Jay Savage
On Apr 6, 2005 12:46 PM, Andrew Kennard <[EMAIL PROTECTED]> wrote: > I know I don't need that line I was just seem if it created a simlar error > but it doesn't. Taking it out obviously doesn't fix the problem. > > The error that is returned is > > Can't locate PDF/Reuse.pm in @INC (@INC contains

Re: Path problem

2005-04-06 Thread Andrew Kennard
I know I don't need that line I was just seem if it created a simlar error but it doesn't. Taking it out obviously doesn't fix the problem. The error that is returned is Can't locate PDF/Reuse.pm in @INC (@INC contains: /resellers/demon/webhosting-plus/content/e/v/evbookingsvs/secure_docroot/pd

Re: Path problem

2005-04-06 Thread mgoland
- Original Message - From: Andrew Kennard <[EMAIL PROTECTED]> Date: Wednesday, April 6, 2005 11:29 am Subject: Path problem > Hi all Hello, > > Iv'e downloaded a pdf module from CPAN and am trying to use it in > my > webspace provided by Demon Internet (www.demon.net) but no matter >

RE: $PATH/expect_scripts/script.exp | $PATH/perl/script.pl

2004-02-04 Thread West, William M
i feel silly. with regard to pipe catching:: while () { print " $_, is a lovely string\n"; } well, there's a simple answer to a simple question... willy :) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Path to script

2003-01-21 Thread Brian Ling
Yep I did really want FindBin, as I did not know the possible problems with $0, -Original Message- From: NYIMI Jose (BMB) [mailto:[EMAIL PROTECTED]] Sent: 21 January 2003 10:13 To: Brian Ling; Mark Goland Cc: perl Subject: RE: Path to script > -Original Message- > From:

RE: Path to script

2003-01-21 Thread Paul Johnson
Brian Ling said: > Thanks for that, > > I'll go with the File::Basename option as I may need to change the 'pwd' > by the time the call is made. What you really want is the FindBin module. perldoc FindBin >> > I have the following bit of code that works out the >> directory path to >> > the cu

Re: Path to script

2003-01-21 Thread Rob Dixon
"Brian Ling" wrote: > Hi all, > > I have the following bit of code that works out the directory path to > the currently executing script. > > My $path = $0; > $path =~ s#(^/.+/).+$#$1# ; > > This works but doesn't make me happy, is there a better way? If you're doing other path manipulation in the

RE: Path to script

2003-01-21 Thread NYIMI Jose (BMB)
> -Original Message- > From: Brian Ling [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 21, 2003 10:59 AM > To: NYIMI Jose (BMB); Mark Goland > Cc: perl > Subject: RE: Path to script > > > Thanks for that, > > I'll go with the File::Basename

RE: Path to script

2003-01-21 Thread Brian Ling
Thanks for that, I'll go with the File::Basename option as I may need to change the 'pwd' by the time the call is made. Brian -Original Message- From: NYIMI Jose (BMB) [mailto:[EMAIL PROTECTED]] Sent: 21 January 2003 09:48 To: Mark Goland; Brian Ling Cc: perl Subje

RE: Path to script

2003-01-21 Thread NYIMI Jose (BMB)
Have a look to : http://search.cpan.org/author/LIBERTY/Cwd-2.06/Cwd.pm José. > -Original Message- > From: Mark Goland [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 21, 2003 10:42 AM > To: Brian Ling > Cc: perl > Subject: Re: Path to script > > >

Re: Path to script

2003-01-21 Thread Mark Goland
my $path=`pwd` on *nix my $path=`cd` on win* - Original Message - From: "Brian Ling" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 21, 2003 4:25 AM Subject: Path to script > Hi all, > > I have the following bit of code that works out the directory path to > the cur

RE: Path to script

2003-01-21 Thread NYIMI Jose (BMB)
C:\>perldoc File::Basename NAME fileparse - split a pathname into pieces basename - extract just the filename from a path dirname - extract just the directory from a path SYNOPSIS use File::Basename; ($name,$path,$suffix) = fileparse($fullname,@suffixlist) fi

RE: Path

2002-07-08 Thread Anders Holm
Did you install Net::SMTP using PPM, or did you just copy in some of the files from the archive? Seems to me like it's not installed properly... [snip] > Can't locate Net\SMTP.pm in @INC (@INC contains path/to/the file/ > Does anyone know what it's looking for? The Subdirectory NET in your @INC

RE: Path

2002-07-08 Thread Timothy Johnson
Which Perl distribution are you using? I'd recommend downloading and installing ActivePerl from ActiveState. It's kind of the de facto standard for Win32 Perl. Net::SMTP is one of the modules that comes standard with that distribution. -Original Message- From: William Black [mailto:[E

RE: path for personal library

2002-03-27 Thread Timothy Johnson
If you are using ActiveState's ActivePerl, then you should have it at perl/site/lib/folder/module.pm. -Original Message- From: Paul Tremblay [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 8:57 AM To: [EMAIL PROTECTED] Subject: path for personal library I am trying to set up