RE: CLOSING Re: Obtaining complete Unix command line that evoked script as string

2006-01-12 Thread Grant Jacobs
So sorry to see you go. There's nothing bad about me unsubscribing (you're reading me very negatively!). Its just I get so much mail that I prefer to unsubscribe and browse HTML archives if I'm not actively asking something. The only cross-platform, foolproof way of keeping track of the c

RE: CLOSING Re: Obtaining complete Unix command line that evoked script as string

2006-01-12 Thread Timothy Johnson
So sorry to see you go. The only cross-platform, foolproof way of keeping track of the command-line used to launch a program regardless of the complexity that I can think of is to make a note of it in the program that launched the command-line. If you really wanted to, you could even pass it as

CLOSING Re: Obtaining complete Unix command line that evoked script as string

2006-01-12 Thread Grant Jacobs
I'll be closing this unless I can see leads soon as I'm pretty much out of time and I'll be unsubscribing when I'm done. At 8:56 AM -0500 12/1/06, Bob Showalter wrote: I'm with JupiterHost; what exactly are you trying to accomplish here? I thought I'd already said that, but perhaps I missed

Re: Matching the first string

2006-01-12 Thread alex litvak
10x you Joan And Timothy. about the regular expressions --> im reading now the Perl Programming book, and i red about regular expressions, but i have to get used to this language and its abilities -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Matching the first string

2006-01-12 Thread John Doe
alex litvak am Donnerstag, 12. Januar 2006 21.11: > Hello all > im new in perl and i need some help > > i`ve written a script whose purpose is to put files in different > directories by its first later, the problem is that every file begins > with different chars for example "01 - Eminem Encore.mp3

RE: Matching the first string

2006-01-12 Thread Timothy Johnson
Check out 'perldoc perlre' and 'perldoc -f substr'. If you are using a regular expression, you can use the '^' character to denote the beginning of the string, and parentheses to grab what you need. You can also check out the substr() function. -Original Message- From: alex litvak [ma

RE: Use Strict Question

2006-01-12 Thread Timothy Johnson
When you 'use strict', you must declare each variable using my(). my referrers = qw(one two three four); When you do this, be sure to keep in mind that whatever variable you declare will be scoped to the block it is in (or the file, if it is declared outside of a block. Do a 'perldoc st

Re: Use Strict Question

2006-01-12 Thread Omega -1911
In short, you need to declare your variables in your script. my $OrderFile; my $referer; Instead of just "defining" your variable (example below) $referer = "something"; # TAINTED DATA On 1/12/06, Gerald Wheeler <[EMAIL PROTECTED]> wrote: > > Need a little help... trying to this thing right.

Use Strict Question

2006-01-12 Thread Gerald Wheeler
Need a little help... trying to this thing right.. with all these errors one might assume it's simply - forgot to do something... any help in the solution to these errors is greatly appreciated "use strict;" is used.. # perl -c theta.pl > Variable "$error" is not imp

Matching the first string

2006-01-12 Thread alex litvak
Hello all im new in perl and i need some help i`ve written a script whose purpose is to put files in different directories by its first later, the problem is that every file begins with different chars for example "01 - Eminem Encore.mp3" my question is how can i get to the first latter in the nam

Re: *NOT* SOLVED Re: Obtaining complete Unix command line that evoked script as string

2006-01-12 Thread Leif Ericksen
Since most folks bottom post here see the bottom for my answer to this problem. On Thu, 2006-01-12 at 15:48 +1300, Grant Jacobs wrote: > Sorry for the repeat posting, that's NOT solved. > > >(Excuse the long post.) > > > >Unless I'm missing something, this doesn't do what I wanted. I want > >is

Re: SOLVED Re: Obtaining complete Unix command line that evoked script as string

2006-01-12 Thread Tom Phoenix
On 1/11/06, Grant Jacobs <[EMAIL PROTECTED]> wrote: > I want > is the whole command *line* > it'd be > nicer to have a solution that's not tied to a particular shell or > version.) Alas, only a few versions of a few shells will give you what you want. The command line which invoked your program,

Re: SOLVED Re: Obtaining complete Unix command line that evoked script as string

2006-01-12 Thread Bob Showalter
Grant Jacobs wrote: I want is the whole command *line*, not the portion of it that evoked the script, the latter being the individual *command* within the command line--confusing enough ;-) ? If I issue the example I gave in my OP: echo -n "Starting..." ; more some-stuff | \ doStuff.pl

Re: Help with my thought process...parsing a log

2006-01-12 Thread Robert Hicks
Thanks guys I will work on that. I love Perl. :) Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]