RE: perl newbie question

2005-07-25 Thread Larsen, Errin M HMMA/Information Technology Department
Dave Adams wrote: > Larsen, > Hi Dave. My name is Errin. Larsen is my surname. Please, when posting replies, post to the list. > I am afraid I cannot get your suggested code to work. Especially > line that reads "foreach reverse 0..$n;" > > On 7/25/05, Lars

RE: perl newbie question

2005-07-25 Thread Larsen, Errin M HMMA/Information Technology Department
Edward WIJAYA wrote: > On Mon, 25 Jul 2005 21:39:50 +0800, <[EMAIL PROTECTED]> wrote: > > >> Can someone suggest a perl command line snippet that will print the >> last n >> lines of a file. > > > If you are under unix/linux > just use "tail -n" command. > > However if you really want to go vi

RE: array

2005-07-18 Thread Larsen, Errin M HMMA/Information Technology Department
[EMAIL PROTECTED] wrote: > By the way, since you mentioned chomp - what is the difference > between chomp and chop? I think they are both for removing some type > of un-needed whitespace - does one do space, and the other newline or > something? > >> also chomp() the $guess variable to remove

RE: Pass a value to Perl script

2005-07-13 Thread Larsen, Errin M HMMA/Information Technology Department
Perl wrote: > Dhanashri/ Chris > > Yes!! exactly that is what I am trying to do. I am sorry for not > making it clear before. here is the true picture. I have an APP which > can run a perl script but just before running the script I have a > variable in that app which is holding a value let say >

RE: PID of a perl script

2005-07-11 Thread Larsen, Errin M HMMA/Information Technology Department
Mads N. Vestergaard wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hey Everybody, > Hi there! > Just a simple question. > How do I get the PID of my running perl script. Check out the doc 'perlvar'. # perldoc perlvar Then, do a search for 'PID'. It's in there. > Thanks guys,

RE:Wrapper Script

2005-06-28 Thread Larsen, Errin M HMMA/Information Technology Department
Hi Perl folks, No one replied to my posts about a wrapper script. I'm going to try again. I want to be able to process some command-line options, then call/exec a separate command with my processed options, AND pass along the piped input to that command as well. For example, if I have a c