Hello Listers.
Please I am a beginner.
I am making tentative steps to creating a script which will keep my
Notebook and Workstation at work in sync.
My first attempt is just to copy the files from the one to local.
Here is my script - it works, but I suspect there should be a better way
to d
Hello Gurus,
In a script I have a piece of code as such:-
* snip**
my $filedate =~ s/(\d+)//g;
* snip end ***
The data I am parsing looks as such :-
** DATA
C:/directory/MSISExport_20040814.csv
C:/directory/MSISE
Hello Perl Gurus,
Is there some way to set the special variable $/ to a regular expression
such as (.+?):(\d+):(.*)
I have tried:
local $/ =~ m/(.+?):(\d+):(.*)/; # But cannot change $/;
local $/= /(.+?):(\d+):(.*)/; # Use of uninitialized value in pattern
match m//.
I am trying to p
Thanks Bob,
I discovered this when using Mark's suggestion.
[snip]
You haven't read a row from SITELOG. So the regex below is checking the
row
from your SITES file.
>
> # Check the file for any ORA- entries
>
> if($_ =~ m/ORA-/) {
>
> # If it contains records, reverse the file
>
>
a) Thanks Mark for this.
b) Thanks here again, I'll be using this in the future a lot and yes it
is not what I expected, back to the drawing board.
-Original Message-
From: Anderson, Mark (Service Delivery)
[mailto:[EMAIL PROTECTED]
Sent: Friday, August 20, 2004 12:42 PM
To: Denha
Please could the wise folks give me some help. Something is wrong and I
can not find out what.
When I run this program it returns everything is OK (Suspect a logic
error somewhere), which is not possible as the logs in question do have
data that I require (i.e. ORA-12571: TNS:packet writer failure
Hello,
I'd appreciate any suggestions on how to calculate Disk space and Free
Space.
Many Thanks
Denham Eva
Oracle DBA
Linux like TeePee... No Windows, No Gates and Apache inside!
_
This e-mail message has
#---
--
#End Of Dump
Denham Eva
Oracle DBA
Linux like TeePee... No Windows, No Gates and Apache inside!
_
This e-mail message has been scanned for Viruses and Content and cleared
by MailMarshal
For more
fine, I can probably go this route without any serious problems,
however I still don't know - why?
What happens to a file when you use rename? Is it corrupted?
All my tests with rename have not corrupted the logfile yet.
Rgds
Denham Eva
Oracle DBA
In UNIX Land
On a quiet Night, you can hea
Thanks to Sudarshan and John,
for the suggestions.
Very much appreciated!
Rgds
Denham
DISCLAIMER
This message is for the named person's use only. It may contain confidential,
proprietary or legally priv
Hello listers,
I would like to submit a script I have written and it does work. However I
am sure that it can be:
a. Shorter
b. Faster
As you will see it is not very well written. Certainly nothing compared to
some of the listers code I have seen here.
I am new at perl so here goes. Some of you
Message-
From: Denham Eva [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 3:42 PM
To: BeginnersPerl (E-mail)
Subject: Regex Problem - please help
Hello Listers,
I am struggling to get this right. Beginner in perl, so please forgive
ignorance, but the regular expressions are confusing
s a whole string, which I know, unfortunately I am not to
good with the regex part.
Any help will be much appreciated.
Denham Eva
Oracle DBA
In UNIX Land
On a quiet Night, you can hear the Windows machines reboot.
Hello list,
I see a number of mails about Perl books. Most of them mention the O'Reilly
Books.
Does anyone use Perl in a Nutshell? Is it any good as a reference book?
Rgds
Denham Eva
Oracle DBA
In UNIX Land
On a quiet Night, you can hear the Windows machines r
14 matches
Mail list logo