RE: Regex

2002-12-06 Thread bengleto
> m/\s*ORA-(\d+)\s+/ Correct me if I'm wrong, but wont this match fail if there are no spaces after ORA-600 I would think this is better if ($line =~ m/ORA-(\d+)/){$number = $1;} > > Hello list, > > > > I am trying to code a regex to pull out the number part of > > "ORA-600" or 600. > > > >

query a ph nameserver plus backtick question

2002-12-02 Thread bengleto
Hello, I'm on a unix system and I want to query a ph nameserver to get some information. I know that I can have unix do it for me with backticks $name = `ph email = [EMAIL PROTECTED] return name`; this will return text to $name name: Cinco, Aaron

how can I grab the first line from a text file

2002-11-20 Thread bengleto
I know there must be an easy way to do this... help greatly appreciated, Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Determining when a file was created???

2002-11-20 Thread bengleto
Hello, I'm trying to have a script check when a file was created. I've looked at the file test operators (-C) but it looks like those wont help me because they return file ages since the script started running, I need something more like a timestamp. Any ideas? Thank you in advance for any h

howdo I make output from a print statement look pretty?

2002-10-31 Thread bengleto
Hello All, The Code in question: print "$name $in$total \n"; Output: Jon Doe 12000 15 Mr. Ihavealongname 15000 20 I want it to look like this Jon Doe 12000 15 Mr. Ihavealongname 15000 20 could you explain any solutions you might haveI'

split function using "." for the pattern

2002-10-30 Thread bengleto
I have a string that I want to split into an array 10.30.02 I cant get it to split up the string at the "."s. Do I have to do something different because "." is an ambiguous character? Thank you Brian -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT