I may be stating the obvious here, but seeing that no one else has responded...
in that thread, they discuss the fact that the person is trying to compile a
"very old perl with a (very) new gcc".
If you must stay with perl5.005_03, have you considered installing an older gcc
to try to build thi
Take a look at the perl documentation for Getopt::Std
(for letter type switches...i.e: "-s")
and/or Getopt::Long (for word type switches ).
I believe these modules are included with every
standard Perl distribution. There are plenty of code
samples in the documentation to get you rolling.
HTH
JD
Steve,
Agreed a FILE can be deleted/rewritten in this manner,
but according to his message, I'm pretty sure that he
is discussing a log DIRECTORY.
Jeff
--- Steve Dawson <[EMAIL PROTECTED]> wrote:
> Quoting Jeff D <[EMAIL PROTECTED]>:
>
> > Look for all files (.pl
Ditto to what Brian says about changing perms on the
directory.
A bit of a brute force method here, but if you're
scrapped for time and don't want to wait for the
deletion attempt to take place, you could also try
doing a "find grep" from your MySystem directory.
Look for all files (.pl?, .c?) an
Try using the File::stat module...it works fine for me
on RHES and 7.2
use File::stat;
my $file = "./blah";
my $st = "";
my $blocksize = 0;
$st = stat($file);
$blocksize = $st->blksize;
print "Blocksize: [$blocksize]\n";
HTH
JD
--- Arijit Das <[EMAIL PROTECTED]> wrote:
> Thanks Bruce...Your
According to O'Reilly's Programming Perl book,
getprotobyname is a perl built in function, so no
additional modules are required.
I've tried your code on both SunOS 5.6 and SunOS5.8
with perl 5.00503 and receive no errors.
Have you tried your code with other comm protocols?
Ie substitute the udp
The short answer would be to set a variable to the
output of the command using backticks. ie:
$id_info = `/path/to/id`;
chomp $id_info;
And then using various splits, you will be able to get
at individual pieces of the return.
HTH
JD
--- Márcio_Oliveira <[EMAIL PROTECTED]>
wrote:
> hi!
Miguel,
The installation location for perl mods is actually
baked into the perl package that you are using
(various Config.pm's).
I have two separate versions of perl (5.005.03 and
5.8.3) and use the cpan shell to download/install perl
mods.
If you go this route and just modify your path to pick
Try sprintf
Just add an 's' in front of your printf and you should
be square.
--- Craig Sharp <[EMAIL PROTECTED]> wrote:
> I need to get 2 digit time and date in a scalar
> when there is only 1 digit.
>
> Eg: Using printf with %02d, I am able to get 05 to
> print at 5 min past the hour.
>
>
FYI...I was able to execute your code successfully
with a ten-thousand line file. A diff between the two
files displays the expected results.
If this is just a snippet, perhaps your problem lies
elsewhere within the script?
--- [EMAIL PROTECTED] wrote:
> Here is a code snippet that I wrote for th
10 matches
Mail list logo