Re: Display test in MAN page way

2007-10-06 Thread Sundeep
my help is not in POD format. A sample of help is below: It will be similar with more descriptive examples... so it extends more than a page... -0[octal] specify record separator (\0, if no argument) -a autosplit mode with -n or -p (splits $_ into @F) -C[number/list] ena

Re: Display test in MAN page way

2007-10-06 Thread Sundeep
n to customers Are there any more ways . so that I can have multiple options :) Also I would be happy to have output which could be scrolled bi- directional. Thanks, Sundeep -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Display test in MAN page way

2007-10-05 Thread Sundeep
I have a script to do several operations, based on the various options provided from command line. For that I have created the help text (script.pl --help). The text is huge (exceeding 1 page) and I can not cut down on that. So when users (one who uses my script) asks for help, it just scrolls of

Re: Abnormal behavior of print / syswrite

2007-09-20 Thread Sundeep
, [EMAIL PROTECTED] (Jenda Krynicky) wrote: > From: Sundeep <[EMAIL PROTECTED]> > > > A clue less problem for me... > > > my $message = "Completed CODE standards checks.\n". > > "For details, refer to the file $log_file_name

Abnormal behavior of print / syswrite

2007-09-19 Thread Sundeep
g). Not getting any clue what is wrong. The same code was working very well earlier (2 days back). Could anyone tell me what could be the problem (perl or non perl related) Thanks, Sundeep -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: How to create a package level variable

2007-08-24 Thread Sundeep Gupta
that module, it just works fine. Thanks, Sundeep On 8/24/07, Jeff Pang <[EMAIL PROTECTED]> wrote: > > 2007/8/24, Sundeep <[EMAIL PROTECTED]>: > > I need to have a package level variable. For that I am using the > > following method: > > > > package XYZ; > &

How to create a package level variable

2007-08-24 Thread Sundeep
I need to have a package level variable. For that I am using the following method: package XYZ; $XYZ::db_initialised = 0; sub init_db() { DB::init() unless $XYZ::db_initialized; $XYZ::db_initialized = 1; } or package XYZ; my $db_initialised = 0; sub init_db() { DB::init() unle

Using text files as database to interact with DBI

2007-08-18 Thread Sundeep
Hi, I am doing requirement analysis to build a forum (discussion board) using Perl. Currently the data is planned to be kept in text files, but later it may be moved to a database. I am new to database module (in fact to database related stuff). I read that DBI module is database independent. I w