Re: Perl question

2003-06-21 Thread Ronald J Roy
On Fri, Apr 25, 2003 at 11:50:20PM -0600, Ashley M. Kirchner wrote: > > This may be a dumb question, buthow do you remove perl modules? > Like, if I installed something via CPAN that I no longer need, how do I > remove it? > to list all modules: perl find_modules.pl to remove: perl rem

RE: Perl question

2003-02-17 Thread Paul Kraus
Pass it as a referance. #!/usr/bin/perl -w @sample_array = ('hi', 'there', 'steve'); $sample_array_ref = \@sample_array; &PRINT_CONTENTS($sample_array_ref); exit 0; sub PRINT_CONTENTS{ my $local_ref = $_[0]; foreach (@{$local_ref}){ print "string = $_\n"; } } You can also clean the c

Re: Perl question comparing lastModified time to now

2000-03-05 Thread Cameron Simpson
On Sun, Mar 05, 2000 at 01:08:24PM -0500, gnielson wrote: | I am trying to figure out a way to test a file with perl to find out when | it was lat modified and if that was within the last minute, do something, | otherwise exit. | | I've gotten as far as this: | | $file='filename.txt'; | $lastMod

RE: Perl Question

1998-04-13 Thread Tempel, Philippe
> Sorry, off topic but i need answer to this q right away. > > What's the equivalent command for "break" in Perl? > [PT] The break and contunie statements in C become last and next in perl. See p. 533 of the "camel book". -- PLEASE read the Red Hat FAQ, Tips, Errata and th