05-07-2002
edited post
[Snipped by LivinFree]
Crawler - that was innapropriate.
It was counter-productive and a waste of time.
"A little knowledge is a scary thing"
Last edited by LivinFree; 05-11-2002 at 01:45 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
hi
Can any one suggest me book for perl scripting on UNIX Platform.
Regards (2 Replies)
Discussion started by: rochitsharma
2 Replies
2. Shell Programming and Scripting
Hi
does anyone know how to ouput "I love scripting" to "scripting love I"
without using reverse() function in perl?
Thanks (2 Replies)
Discussion started by: ccp
2 Replies
3. Shell Programming and Scripting
Hi,
To run a perl script i am giving command like this in DOS prompt
d:> perl D:\<dir_name>\<dir_name>\sample.pl
Its throwing the following error while running the above
syntax error at <eval 4> line 1, near "use D:"
Can anyone help? (3 Replies)
Discussion started by: mvictorvijayan
3 Replies
4. Shell Programming and Scripting
Hi
How to call a shell scripting through a Perl scripting? Actually I need some value from Shell scripting and passes in the Perl scripting. So how can i do this? (2 Replies)
Discussion started by: anupdas
2 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
Need help configuring Active Perl on Windows Vista.
I am trying to install Active Perl on Windows Vista.
The version of Active Perl i am trying to install is : ActivePerl 5.10.1 Build 1006
After installing it through cmd, When i try to run perl -v to check the version, i get the... (2 Replies)
Discussion started by: Vabiosis
2 Replies
6. What is on Your Mind?
Hi all,
I would like to start developping some good scripting skills. Do you think it would be best to start with shell scripting or Perl? I already got a fundation, really basics, in perl. but I am wondering what would be best to be good at first.
Can you please help me determine which one to... (14 Replies)
Discussion started by: Pouchie1
14 Replies
7. What is on Your Mind?
Gents,
I have been working in a Solaris/Unix environment for about 9 months. I took some linux classses online before getting the job. But, I am not very good at scripting. I want to learn how to script. Do you think that I should start with Shell scripting or Perl? I wanted to continue with... (2 Replies)
Discussion started by: Pouchie1
2 Replies
8. Web Development
i am going to study any one of the scripting languages mentioned above(shell 0r perl scripting) . Which is having more scope for a fresher? (1 Reply)
Discussion started by: Anna Hussie
1 Replies
9. Shell Programming and Scripting
I am having file xyz.log
Its content is like this
int main()
{
d;
#ifdef
e;
f;
#else
g;
#ifdef
h.
#else
i; (2 Replies)
Discussion started by: naaj_ila
2 Replies
10. Shell Programming and Scripting
I have create this shell script
#!/bin/sh
if ; then
echo "Usage: ./script <filename>"
exit 1
elif ; then
fname="$1"
fi
output="output.txt"
i=0 ... (11 Replies)
Discussion started by: Evelin90
11 Replies
LEARN ABOUT DEBIAN
log::nullloglite
NullLogLite(3pm) User Contributed Perl Documentation NullLogLite(3pm)
NAME
Log::NullLogLite - The "Log::NullLogLite" class implements the Null Object pattern for the "Log::LogLite" class.
SYNOPSIS
use Log::NullLogLite;
# create new Log::NullLogLite object
my $log = new Log::NullLogLite();
...
# we had an error (this entry will not be written to the log
# file because we use Log::NullLogLite object).
$log->write("Could not open the file ".$file_name.": $!", 4);
DESCRIPTION
The "Log::NullLogLite" class is derived from the "Log::LogLite" class and implement the Null Object Pattern to let us to use the
"Log::LogLite" class with null "Log::LogLite" objects. We might want to do that if we use a "Log::LogLite" object in our code, and we do
not want always to actually define a "Log::LogLite" object (i.e. not always we want to write to a log file). In such a case we will create
a "Log::NullLogLite" object instead of the "Log::LogLite" object, and will use that object instead. The object has all the methods that
the "Log::LogLite" object has, but those methods do nothing. Thus our code will continue to run without any change, yet we will not have to
define a log file path for the "Log::LogLite" object, and no log will be created.
CONSTRUCTOR
new ( FILEPATH [,LEVEL [,DEFAULT_MESSAGE ]] )
The constructor. The parameters will not have any affect. Returns the new Log::NullLogLite object.
METHODS
write( MESSAGE [, LEVEL ] )
Does nothing. The parameters will not have any affect. Returns nothing.
level( [ LEVEL ] )
Does nothing. The parameters will not have any affect. Returns -1.
default_message( [ MESSAGE ] )
Does nothing. The parameters will not have any affect. Returns empty string ("").
AUTHOR
Rani Pinchuk, rani@cpan.org
COPYRIGHT
Copyright (c) 2001-2002 Ockham Technology N.V. & Rani Pinchuk. All rights reserved. This package is free software; you can redistribute
it and/or modify it under the same terms as Perl itself.
SEE ALSO
Log::LogLite(3), The Null Object Pattern - Bobby Woolf - PLoP96 - published in Pattern Languages of Program Design 3
(http://cseng.aw.com/book/0,,0201310112,00.html)
perl v5.10.0 2009-05-13 NullLogLite(3pm)