Lenny wrote:
Greetings,
I have a script that runs differently depending on the system its executing
under. How can i query the system type ?
Try:
My $os = $^O
___
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe:
Pijush wrote:
Hi!
I am using ActiveState Perl v5.6.1. When I am trying
ping command to check whether a remote machine alive
or not, it is giving following error:
The Unsupported function alarm function is
unimplemented at C:/Perl/lib/Net/Ping.pm line 308.
Here is my code
use Net::Ping;
$a =
Steve,
There is a module in CPAN, File::Basename, that will probably do what you
need. With that module you can split the path into its distinct pieces,
retrieve just the file name or retrieve just the path name.
Mike Shelton
-Original Message-
From: Steve Blumenkrantz [mailto:[EMAIL
Here, here! Agreed!
-Original Message-
From: Randy Kobes [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2003 1:34 PM
To: Dick Penny
Cc: Jan Dubois; Jeff Urlwin; [EMAIL PROTECTED]
Subject: Re: 5.8 and missing modules
On Fri, 7 Mar 2003, Dick Penny wrote:
This is top posting, BUT,
on Thursday, March 6, 2003, Pradeep wrote:
I am not able to set the repository , need help . Perl is 5.8 .
ppm set repository
Unknown or ambiguous setting 'repository'. See 'help settings'.
I believe the format of the repository command changed in Perl 5.8. Anyway,
please try the following:
Title: Message
Matt,
I went
to the O'Reilly web site, selected the Perl resource center,and found
"Learning Perl on Win32 systems" in the list. You might try that one to
start. Also, if you check out Dave Roth's web site, http://www.roth.net/, you will see a couple of
books that he has
Thiago,
I used script below to test the regexp to do what you asked. The expression
follows, then I listed my test code below.
$string =~ m/#(.*)#/;
$information=$1;
Mike Shelton
#! perl -w
#
use strict;
# Get the file with the data
my $file = shift @ARGV;
die Usage: $0 FILENAME\n if
Rajib,
I believe you are having a problem because of what readdir returns. readdir
returns an array of file names from the directory. The first two files in
the directory are always the current directory (.) and the parent
directory(..). If you stuff the contents of the readdir into an array
Sachin,
You did not say whether you worked in a *nix or Microsoft environment. If
in *nix, use od -x filename. This will list all of the characters in
your file in hex format.
Mike Shelton
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday,