Help with global variable

2001-07-09 Thread Kailash . Subramanian
Hi gurus, I want to read the STDIN as an input and I process the input whose output can be single field or multiple fileds which I want to store in variables. Based on that condition I want to perform two things, may be using sub-routines. Inside the sub-routine, if I try to refer to

Simple question

2001-05-29 Thread Kailash . Subramanian
Hi All, I am working on the following output. * /ebppvobstore/vobs/Core /ebppvobstore/vobs/aci.vbs public * /ebppvobstore/vobs/UCMCQ /ebppvobstore/vobs/UCMCQ.vbs public (ucmvob) /ebppvobstore/vobs/Comp_Care /ebppvobstore/vobs/Comp_Care.vbs/ public I want to check for the asterisks and

Time stamp ?

2001-05-21 Thread Kailash . Subramanian
All, I want to remove files which are older than 2 days. Is there any easy way to do that perl (high level syntax, please) ? or do I 've to get the date from the time stamp of the file and compare with current date to remove them. In UNIX I use mtime with find command. I would appreciate

Mail::Sendmail

2001-05-11 Thread Kailash . Subramanian
All, I am looking for a way to send the output of a logfile using Mail::Sendmail. Is that possible? If so can some body give me a high level syntax. Thanks in advance, Kailash

Re: gzip or Compress::Zlib

2001-05-09 Thread Kailash Subramanian
ng to use perl Archive::Tar utility to tar the files. Can I not just use the Compress utility of perl without Archive::Tar if it is better that UNIX gzip ? Thx Kailash From: [EMAIL PROTECTED] AT INTERNET on 05/09/2001 12:23 PM To: Kailash Subramanian/ATL/ALLTELCORP cc: [EMAIL PROTECTE

gzip or Compress::Zlib

2001-05-09 Thread Kailash . Subramanian
Hello, Can somebody advice on whether to use UNIX gzip or the perl Compress::Zlib for compressing a tar file. If it is going to be Compress::Zlib, I would appreciate if somebody can give me a basic syntax. Thx Kailash

How to recursively tar ?

2001-05-03 Thread Kailash . Subramanian
All, What is the best way to create a tar archive using Archive module for a large directory structure with some 5000 files ? Currently I am using UNIX tar for this. Do I read all the files and directory and then use Archive module to tar them? If anybody can give me an idea for the syntax

Re: Compile error

2001-05-02 Thread Kailash Subramanian
Kailash From: [EMAIL PROTECTED] (Curtis Jewell) AT INTERNET on 05/02/2001 05:16 PM To: Kailash Subramanian/ATL/ALLTELCORP cc: [EMAIL PROTECTED] AT INTERNET@CCMAIL Subject: Re: Compile error -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 2 May 2001, Kailash Subramanian wrote

Re: problem with PATH

2001-05-02 Thread Kailash Subramanian
Utils/MakeMaker.pm line 507 But I see the module. $ ls -l /opt/perl5/lib/5.6.1/PA-RISC1.1/File total 26 -rw-r- 1 vobadm nfsgroup 12808 Apr 14 07:48 Glob.pm Thx Kailash From: [EMAIL PROTECTED] (Curtis Jewell) AT INTERNET on 05/02/2001 05:09 PM To: Kailash Subramania

Re: Compile error

2001-05-02 Thread Kailash Subramanian
But I see the module. $ ls -l /opt/perl5/lib/5.6.1/PA-RISC1.1/File total 26 -rw-r- 1 vobadm nfsgroup 12808 Apr 14 07:48 Glob.pm Thx Kailash From: [EMAIL PROTECTED] (Casey West) AT INTERNET on 05/02/2001 03:31 PM To: Kailash Subramanian/ATL/ALLTELCORP cc: [EMAIL

Compile error

2001-05-02 Thread Kailash . Subramanian
All, When I run this command, I get the following error message. $ perl Makefile.PL Checking if your kit is complete... Looks good Can't locate loadable object for module File::Glob in @INC (@INC contains: /opt/perl5/lib/5.6.1/PA-RISC1.1 /opt/perl5/lib/5.6.1 /opt/perl5/lib/site_perl/5.6.1/

problem with PATH

2001-05-02 Thread Kailash . Subramanian
All, I am trying to install a perl module on HP-UX. So when I run the following command I am getting an error as shown below. I know that perl is looking under wrong dir for this module. I am trying to use my own perl under my home dir. There is also another perl installation directory und

tar utility for perl

2001-04-30 Thread Kailash . Subramanian
Is there any special tar utility in perl ? I want to tar up some dirs/files in unix and I want to use the inbuilt tar utility inside perl script, if any ? If so, can somebody provide some pointers to it. Thx Kailash

Beginner's question

2001-04-27 Thread Kailash . Subramanian
All, I am writing a small perl script which is included below. I 've a problem with this line my $prjstream = `cleartool lsstream -in @prjname[1]\@$ucmvob | grep Int` ; It doesn't recognise $ucmvob in this command. But if I replace the variable $ucmvob with the string "/ebppvobstore/vobs

Global symbol requires explicit pack name

2001-04-24 Thread Kailash . Subramanian
All, When I use strict function, I get an error in the following code. #!/usr/local/bin/perl use strict ; my @vob_list = `cleartool lsvob | grep "*"`; my $entry ; foreach $entry (@vob_list) { chomp $entry; my @fields = split /\s+/, $entry; my $tag_list ; my $vbs_list ; @tag_list = @fields[1

Parsing the output

2001-04-24 Thread Kailash . Subramanian
All, I 've an output from the system comand as follows. * /xxx/ /yyy/ * /www/ /vvv/ * /uuu/ /ttt/ ::: I want to parse this output into an array and split them and process each entry. Essentially, I want to parse the output of a command to an a