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
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
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
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
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
>
=
__
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
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,
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
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.
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
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
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
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
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
> ...
> ...
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
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
16 matches
Mail list logo