RE: How can i query System type at runtime ? ... Windows vs Unix ?

2003-08-14 Thread Shelton, Mike
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:

RE: :ping command giving error

2003-07-17 Thread Shelton, Mike
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 =

RE: brain dead question

2003-03-26 Thread Shelton, Mike
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

RE: 5.8 and missing modules

2003-03-07 Thread Shelton, Mike
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,

RE: not able to set repository

2003-03-06 Thread Shelton, Mike
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:

RE: Assistance to get started in Win32 Perl

2003-02-05 Thread Shelton, Mike
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

RE: Easy expression ...

2002-06-27 Thread Shelton, Mike
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

RE: Want help for FTP using Perl

2002-04-24 Thread Shelton, Mike
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

RE: reading invisible characters in a file...

2002-01-30 Thread Shelton, Mike
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,