Re: [Perl-unix-users] Display parent program (.pl) from a package (.pm)?

2002-06-07 Thread Jenda Krynicky
From: "Kirk" <[EMAIL PROTECTED]> > Not exactly. There are several dozen parent programs that call a > single child program (a global DBI handle). I've just discovered that > many of the calling parent programs are using "require". So what I > have is: > > #!/usr/local/bin/perl > # filename: p

Re: [Perl-unix-users] ^M characters

2002-06-07 Thread $Bill Luebkert
AITHA, BHEEMSEN (SBCSI) wrote: > Hi, > > I had copied some files from c:\ drive on to Unix machine. At the end of > each line, I see the end of line character(^M). To get rid of all these ^M > characters, I had opened a file in vi and performed the following command. > > :s/^M//g > > But vi sa

Re: [Perl-unix-users] ^M characters

2002-06-07 Thread Troy Tyson
The ^M is equivalent to the '\r'.  When a binary ftp session is used to bring a file from a Windows environment to a Unix environment the '\r\n' is carried over as well. Try 's/\r//g' >From: "Martin Moss" <[EMAIL PROTECTED]> >To: "AITHA, BHEEMSEN \(SBCSI\)" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED

Re: [Perl-unix-users] ^M characters

2002-06-07 Thread Martin Moss
recopy your file in ascii mode, This will remove the ^M. other wise the character you are looking for is a single character not '^' + 'M' you can tell this in vi by scrolling your cursor across it, you'll note the cursor moves two spaces. Can't remember what the unix keyboard command is to produ

Re: [Perl-unix-users] Display parent program (.pl) from a package (.pm)?

2002-06-07 Thread Henry Wong, ¶À³Ç¼e
no problem. --- Kirk <[EMAIL PROTECTED]> wrote: > My bad, sorry. caller() worked just fine..I wasn't > using it correctly in my > initial attempt. > > Thanks for the advice, > > Kirk > [EMAIL PROTECTED] > http://www.scriptdoggie.com > = __

Re: [Perl-unix-users] Display parent program (.pl) from a package (.pm)?

2002-06-07 Thread Kirk
My bad, sorry. caller() worked just fine..I wasn't using it correctly in my initial attempt. Thanks for the advice, Kirk [EMAIL PROTECTED] http://www.scriptdoggie.com - Original Message - From: "Jenda Krynicky" <[EMAIL PROTECTED]> To: "Kirk" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Se

RE: [Perl-unix-users] ^M characters

2002-06-07 Thread AITHA, BHEEMSEN \(SBCSI\)
Thanx to all of you for your quick and helpful responses. dos2unix did not work on my machine. My machine is IBM/AIX using korn shell. The solution sent by Henry Wong worked. Thanx again. -Bheem -Original Message- From: Richard Brust [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07,

Re: [Perl-unix-users] Display parent program (.pl) from a package (.pm)?

2002-06-07 Thread Henry Wong, ¶À³Ç¼e
try accessing %INC? --- Kirk <[EMAIL PROTECTED]> wrote: > Not exactly. There are several dozen parent > programs that call a single > child program (a global DBI handle). I've just > discovered that many of the > calling parent programs are using "require". So > what I have is: > > #!/usr/loc

Re: [Perl-unix-users] Display parent program (.pl) from a package (.pm)?

2002-06-07 Thread Kirk
Not exactly. There are several dozen parent programs that call a single child program (a global DBI handle). I've just discovered that many of the calling parent programs are using "require". So what I have is: #!/usr/local/bin/perl # filename: parent.pl require child.pl ... ... And in child.

Re: [Perl-unix-users] ^M characters

2002-06-07 Thread Henry Wong, ¶À³Ç¼e
perl -pi -e 's/\r\n/\n/g' filename, from DOS to UNIX perl -pi -e 's/\n/\r\n/g' filename, from UNIX to DOS perl -pi -e 's/\r/\n/g' filename, from MAC to UNIX peri -pi -e 's/\n/\r/g' filename, from UNIX TO MAX --- "AITHA, BHEEMSEN (SBCSI)" <[EMAIL PROTECTED]> wrote: > Hi, > > I had copied some fil

RE: [Perl-unix-users] ^M characters

2002-06-07 Thread murali
Bheem, You can run dos2unix command, it will take care of this control M charaters. -Murali > -Original Message- > From: AITHA, BHEEMSEN (SBCSI) [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 07, 2002 11:11 AM > To: [EMAIL PROTECTED] > Subject: [Perl-unix-users] ^M characters > > > H

[Perl-unix-users] ^M characters

2002-06-07 Thread AITHA, BHEEMSEN \(SBCSI\)
Hi, I had copied some files from c:\ drive on to Unix machine. At the end of each line, I see the end of line character(^M). To get rid of all these ^M characters, I had opened a file in vi and performed the following command. :s/^M//g But vi says that pattern does not exist. Is there any other

Re: [Perl-unix-users] Display parent program (.pl) from a package (.pm)?

2002-06-07 Thread Henry Wong, ¶À³Ç¼e
caller returns the caller's package name if there is a caller perldoc -f caller --- Jenda Krynicky <[EMAIL PROTECTED]> wrote: > From: "Kirk" <[EMAIL PROTECTED]> > > > Is there a system variable or some clever way to > view all the > > "currently" running programs from within a > package? This

Re: [Perl-unix-users] Display parent program (.pl) from a package (.pm)?

2002-06-07 Thread Jenda Krynicky
From: "Kirk" <[EMAIL PROTECTED]> > Is there a system variable or some clever way to view all the > "currently" running programs from within a package? This is a > confusing question so here's an example. > > I have a program called "parent.pl": > > #!/usr/local/bin/perl > use child > ... > ...

[Perl-unix-users] Display parent program (.pl) from a package (.pm)?

2002-06-07 Thread Kirk
Hello, Is there a system variable or some clever way to view all the "currently" running programs from within a package? This is a confusing question so here's an example. I have a program called "parent.pl": #!/usr/local/bin/perl use child ... ... Now, when Child is called, I'd like to see i

[Perl-unix-users] Newton Raphson's or Bisection Interpolation in perl

2002-06-07 Thread parvez
Hi, Does anybody know of a module that helps in interpolation using Newton Raphson's method or Bisection method in Perl. Parvez ___ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs