[11292] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 4892 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Feb 14 12:07:26 1999

Date: Sun, 14 Feb 99 09:00:25 -0800
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Sun, 14 Feb 1999     Volume: 8 Number: 4892

Today's topics:
    Re: @ARGV can't take char =?ISO-8859-1?Q?'=F6'?= (ascii <gellyfish@btinternet.com>
    Re: Calculate yesterdays date <mpersico@erols.com>
        Datetime manipulation in perl sharda@hotmail.com
    Re: Datetime manipulation in perl <Tony.Curtis+usenet@vcpc.univie.ac.at>
    Re: Datetime manipulation in perl <Hajo@hadiko.de>
        DBF format bababozorg@aol.com
        Making C function return string to perl? (T. William Wells)
    Re: Microsoft on Perl ran@netgate.net
        newbie prob - server errors <qbe@mailexcite.com>
        Newbie question <seongbae@students.uiuc.edu>
    Re: PERL for Personal Web Server johnsteele@my-dejanews.com
    Re: Perl function to reboot NT Server? <gbuehler@med.unc.edu>
    Re: perl not always in /usr/bin/perl <rra@stanford.edu>
        PFR: Compute offset of local timezone from UTC (Larry Rosler)
        putting keystrokes into the keyboard buffer in windows <andrew@winklers.org>
    Re: Python vs. Perl vs. tcl ? <gellyfish@btinternet.com>
    Re: Samba access w/ perl hb@verum.de
    Re: Shell access? <bgarrett@hamilton.net>
    Re: Shell access? ran@netgate.net
    Re: String splitting. <gellyfish@btinternet.com>
    Re: Very Very Newbie- re: perl5.0042-bindist.04bc <Wissner@concentric.net>
        Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: 14 Feb 1999 12:36:30 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: @ARGV can't take char =?ISO-8859-1?Q?'=F6'?= (ascii dec 148)
Message-Id: <7a6g0e$5oc$1@gellyfish.btinternet.com>

On Wed, 10 Feb 1999 16:06:24 +0100 Jakob Svensson wrote:
> I have some problems with the swedish character 'v' (ascii dec 148)
> 
> 
> #!/usr/local/bin/perl -wT
> 
> use CGI qw(:standard);
> 
> print header;
> print start_html;
> 
> foreach (@ARGV){
> 	print "'";
> 	print "$_";
> 	print "'";
> 	print br;
> 	$number++;
> }
> print "$number/n";
> print end_html;
> 
> exit;

This is not the way to get the parameters in a CGI.pm program - your
loop should be something like:

foreach (param())
  {
    print "'",param($_),"'",br,"\n";
    $number++;
  }

I have flattened the print to one line for ease of typing.

This however will only work properly if you have parameters in the form of:

http://www.blah.com/cgi-bin/blah.pl?name1=value&name2=value

/J\

-- 
Jonathan Stowe <jns@btinternet.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>


------------------------------

Date: Sun, 14 Feb 1999 00:30:30 -0500
From: "Matthew O. Persico" <mpersico@erols.com>
Subject: Re: Calculate yesterdays date
Message-Id: <36C65F76.F0FEB580@erols.com>

Jonathan Stowe wrote:
> 
<snip>
> Lets just go for it and then collect it all together somewhere - I'll
> get back on this.
> 

Shouldn't we start by seeing if O'Reilly, Tom and Nate would be willing
to let you post the code fragments in cookbook.tar.gz? That's as good
"seed corn" as you are going to get!

-- 
Matthew O. Persico
http://www.erols.com/mpersico
http://www.digistar.com/bzip2


------------------------------

Date: Sun, 14 Feb 1999 11:49:19 GMT
From: sharda@hotmail.com
Subject: Datetime manipulation in perl
Message-Id: <7a6d7u$7hl$1@nnrp1.dejanews.com>

hi everybody,

  I am writing perl code which reads the datetime which are sent by the email
headers and then stores it into the database.The acceptable database format
is: mm/dd/yyyy hh:mm:ss

  I am not able to write a module which can take care of all possible
datetime formats.

   For example:

    Day can be  : 01 OR 1

    Month can be: Feb OR February OR 02 OR 2

    Year can be : 99 OR 1999

   Hence a data could be: 08 2 03 12:12:12

    Now, in this, how to find out which is month, which is day and which is
year? :(

   I cannot restrict the format to a particular type.

   Any idea on this will be highly appreciated.

Thanx in advance.

Raj

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


------------------------------

Date: 14 Feb 1999 13:03:35 +0100
From: Tony Curtis <Tony.Curtis+usenet@vcpc.univie.ac.at>
Subject: Re: Datetime manipulation in perl
Message-Id: <836795fazs.fsf@vcpc.univie.ac.at>

Re: Datetime manipulation in perl, sharda
<sharda@hotmail.com> said:

sharda> hi everybody, I am writing perl code which
sharda> reads the datetime which are sent by the
sharda> email headers and then stores it into the
sharda> database.The acceptable database format is:
sharda> mm/dd/yyyy hh:mm:ss

sharda>    I cannot restrict the format to a
sharda> particular type.

Fairly obviously, if there's no algorithm for
knowing which field is which, then you're stuffed.

hth
tony
-- 
Tony Curtis, Systems Manager, VCPC,    | Tel +43 1 310 93 96 - 12; Fax - 13
Liechtensteinstrasse 22, A-1090 Wien.  | <URI:http://www.vcpc.univie.ac.at/>
"You see? You see? Your stupid minds!  | private email:
    Stupid! Stupid!" ~ Eros, Plan9 fOS.| <URI:mailto:tony_curtis32@hotmail.com>


------------------------------

Date: Sun, 14 Feb 1999 13:34:01 +0100
From: Hajo Pflueger <Hajo@hadiko.de>
Subject: Re: Datetime manipulation in perl
Message-Id: <36C6C2B9.BEA7B158@hadiko.de>

Hi,

>    Hence a data could be: 08 2 03 12:12:12

what about
$month = (split(/ /,$data))[0]
?

It seems to be that the month is the first "word" in the data-string. So
just take the first word and work with ist. If you want to have a result
like 08->August, Aug->August and 8->August, try:

$mnames{'8'} = 'August';
$mnames{'Aug'} = 'August';
 ...
if ($month =~ /^0/) { $month = substr($month,1); } # kill the leading
zero
$mname = $mnames{$month};
print $mname;

Cheatah

--
I am a signature-virus. Why don't copy me into your sig?

Come to Cheatah's World at http://cheatah.net/
The World of Linkrotations, Fun and more!
Get your OWN FREE Linkrotation!


------------------------------

Date: Sun, 14 Feb 1999 14:58:15 GMT
From: bababozorg@aol.com
Subject: DBF format
Message-Id: <7a6oa4$fi2$1@nnrp1.dejanews.com>

hi

i need help to change my Comma Delimited database to dbf format by perl
can anyone help please
thanks
hamed

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


------------------------------

Date: 14 Feb 1999 07:32:46 -0500
From: bill@twwells.com (T. William Wells)
Subject: Making C function return string to perl?
Message-Id: <7a6fpe$1tv$1@twwells.com>

I've built, successfully, one C function that I've called from
perl. It returns an integer value and all works fine. However, I
have another situation where I'm going to generate a malloc'd
string. My .xs file will have something like this in it:

char *
my_function(input)
	char    *input;
	CODE:
	char    *temp;

	temp = some_other_function(input); /* result is malloc'd string */
	RETVAL = temp;
	free(temp);
	OUTPUT:
	RETVAL

Is this going to do what I expect? That being that the perl caller
of my_function is going to get the string returned by
some_other_function, and that the free() will get rid of my copy
without confusing anything (presumably because the assign to
RETVAL copies my string).


------------------------------

Date: 14 Feb 1999 15:43:38 GMT
From: ran@netgate.net
Subject: Re: Microsoft on Perl
Message-Id: <7a6qva$otd$2@remarQ.com>

In <7a5ura$63t$1@renpen.nelson.org>, Bob Nelson <bnelson@netcom.com> writes:
>Catch Microsoft's lukewarm endorsement of Perl at this URL:

I took it as being a sort-of concession speech.  Consider:

"Developing a script platform for Windows is an interesting challenge;
we have definite ideas of where we want to take the Microsoft script
languages, Visual Basic Scripting Edition (VBScript) and JScript, we
introduce new technologies, such as Windows Scripting Host (WSH) and
scriptlets -- yet the script world still appears to be dominated by Perl
and its loyal army of developers"

Translation:  "No matter how hard we try to push our platform-dependent
lameware, the world persists in favoring a toolkit that's given away by
a bunch of socks-and-sandals ex-hippies who don't even have the wit to
turn monthly documentation updates into a profit center".

Poor babies...

Ran




------------------------------

Date: Sun, 14 Feb 1999 08:49:21 -0700
From: "qbe" <qbe@mailexcite.com>
Subject: newbie prob - server errors
Message-Id: <7a6qvl$c01$1@news.inconnect.com>

    I'm trying to pick up cgi and perl on my own... but so far I'm unable to
run my .cgi scripts.  I've read several FAQ's & tutorials, but none seem to
be addressing my problem adequately.  Just to get the obvious stuff out of
the way, my .cgi file's permission is 755, #!/usr/bin/perl *is* where my
ISP's CGI FAQ says where to access perl, I've got my .cgi file in the
appropriate location of my account, I've got the whole "header + a blank
line" thing going on... Here's the Perl code, it's brutally simple:

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<HTML><HEAD><TITLE>test cgi script</TITLE></HEAD><BODY>Hello,
world!</BODY></HTML>\n";

    (This works from my UNIX shell, too - it prints out that stuff fine.
But when I link it to a browser, I get the following error message)

Script execution error
Unable to execute script due to a configuration problem.
Please notify the webmaster of this error.
exec() returned: 2: No such file or directory

    The only file or directory I thought I was specifying was the location
of perl, but since I'm pretty confident that part's correct there's nothing
really left I know how to mess with.  All the stuff I've read just assumes
you get this part of the process working without too much trouble, so now
I'm stuck.  Not to mention aggrovated, confused, etc.  Please help!

Eric




------------------------------

Date: Sun, 14 Feb 1999 06:15:49 -0600
From: seong joon bae <seongbae@students.uiuc.edu>
Subject: Newbie question
Message-Id: <Pine.SOL.3.96.990214061058.15546B-100000@ux10.cso.uiuc.edu>


Hello,
I just started learning perl on my own.
I was writing a simple program that counts number of lines, words and
characters from a given file.
This code is from the book,

while (<INFILE>) 
{
    $TheLine = $_;
    chomp($TheLine);
    $Linecount = $Linecount + 1;
    $LineLen = length($TheLine);
    $Charcount = $Charcount + $LineLen;
 ....
 ...
 ...
}

but this program gets stuck at 
$TheLine =$_;
>From the book, that line is supposed to save the line's contents.
I guess my perl doesn't recognize $_ thing.
Does anyone have any suggestion for me?
do i need to upgrade my perl?
I'm using the one that came with Redhat5.2.
thank you.




------------------------------

Date: Sun, 14 Feb 1999 15:46:23 GMT
From: johnsteele@my-dejanews.com
Subject: Re: PERL for Personal Web Server
Message-Id: <7a6r4e$hp4$1@nnrp1.dejanews.com>

Actually its fairly straightforward.

1. Install the PWS.
   a) if using the PWS v 1 from the Win95 CD and you want to run ASP,
download and install ASP.EXE (about 9MB) from Microsoft site.
   b) if using PWS v 4 from the NT4 Option pack it already supports ASP

2. Download and install DCOM.EXE (about 3 MB) from Microsoft site - required
for ActivePerl under Win95 but not NT(Win98?)

3. Install ActivePerl build 509 - the current build. It will ask if you want
to configure for PERL, PERLIS and PerlScript --- say yes to all. It will also
ask about associating the extention ".pl" with PERL and ".plx" with PERLIS.
Say yes.

4. Reboot, start PWS, configure the directories you want and PERL-away.
Remember to configure the directories approraitely for Read and/or Execute as
necessary.

I have this (PWS 1.0) running on my Thinkpad 560 with great success. I am
able to do complete development and test of Perl, PERLIS, PerlScript/ASP
applications on the notebook and then move them to the NT server for
production.

John Steele

In article <36C1F7D6.28AD@hotmail.com>,
  sangapum@hotmail.com wrote:
> okay.. i'm trying to figure out how to use PERL on the Microsoft
> Personal Web Server which came with my Win98 CD.
>
> i've downloaded ActiveState's Perl for Win95/NT.. and i've downloaded
> perl5_00402-bindist04-bc.zip...  all i want to know is how do i actually
> use it.. setups/configurations.. etc..
>
> all the faq's i read seem to have a lot about PERL itself, but i haven't
> seen much about actually running it on win95/98
>
> i know you type in perl whatever.pl to test a script, but how would i
> run it on my Personal Web Server... and what are all the security
> hassles i may encounter...
>
> basically, does anyone know a good page for PERL-newbies that will
> explain to me in SIMPLE ENGLISH what i described above.
>
> thanks a bunch.
> mangesh
>

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


------------------------------

Date: Sun, 14 Feb 1999 09:22:12 -0500
From: "Georg Buehler" <gbuehler@med.unc.edu>
Subject: Re: Perl function to reboot NT Server?
Message-Id: <7a6mfq$vrr$1@camel0.mindspring.com>

Dave,

THANK YOU very much for flagging that function for me.
BTW, I love that Win32::ODBC. Couldn't live without it.
So, by way of thanks, I'll buy your book!

--Georg


Dave Roth wrote in message ...
>Georg Buehler wrote in message <79vp3j$uc9$1@camel18.mindspring.com>...
>>I need to programmatically reboot a Windows NT 4.0 server using Perl.
>>
>>I'm sure such a function exists, but I've poured over the module
>>documentation in vain.
>>
>>I'm currently using ActiveState's 5.00502.
>
>This is from Chapter 9 of my book. It explains about how to initiate a
>system
>shutdown (and reboot). This can be done remotely as well as on the local
>machine.
>In some builds of 5.005 the shutdown functions in the Win32 extension were
>removed. You will want to check and make sure that yours does indeed have
it
>implimented. I believe that ActivePerl (from ActiveState) has always had it
>in their Win32 extension.
>
>Shutting Down A Machine
>=======================
>If your user account has been granted the appropriate privileges your
>script can force a Win32 machine to shutdown using the
>InitiateSystemShutdown() function:
>
>  Win32::InitiateSystemShutdown( $Machine, $Message, $Countdown, $Force,
>$Reboot );
>
>The first parameter ($Machine) is the name of a machine which is to
>shut down. If this parameter is an empty string () then the local machine
>will be affected.
>
>The second parameter ($Message) is a text string message that will be
>displayed on the screen of the computer specified in the first parameter.
>Typically this is something informing the user that the machine is going to
>shut down so all files should be saved.
>
>The third parameter ($Countdown) is a numeric value which represents the
>amount of time (in seconds) before the shut down process begins -- a type
>of countdown. When a shut down is initiated the message specified as the
>second parameter is displayed on the screen and the number of seconds
before
>shut down is displayed. This countdown will start at the time specified as
>the third parameter. An administrator will usually specify some amount of
>time, like 5 minutes, giving a user enough time to properly finish saving
>files or finish and send email messages.
>
>The fourth parameter ($Force) is a flag indicating whether or not the
>machine should force a shut down or not. If a system shut down is forced
>then applications will not be given a chance to save open files [em] they
>are simply shut down. This forceful shut down will occur if the fourth
>parameter
>is a non zero value. Otherwise the each application will ask the user to
>save
>open files during the shut down process.
>
>The fith parameter ($Reboot) is a flag that indicates whether or not to
>reboot
>the machine. If the value is non zero then the machine will shut down
>followed
>by a reboot.
>
>The function returns TRUE (1) if the specified computer will initiate the
>shut
>down process otherwise the computer will not shut down and the function
>returns
>FALSE (0).
>
>For the Win32::InitiateSystemShutdown() function to be successful the user
>who
>calls the function must have the privilege SE_SHUTDOWN_NAME (Force A
>Shutdown
>From A Remote System) enabled on the computer which is to be shut down.
>
>If the $Countdown value (the third parameter) is zero (0) then no message
>will
>be displayed on the specified computer and the shutdown will begin
>immediately
>and there will be no chance for any aborting the shut down. At any time
>during
>the countdown process (before shut down actually begins) the shut down can
>be
>aborted using the Win32::AbortShutdown() function:
>
>  Win32::AbortSystemShutdown( $Machine );
>
>The only parameter ($Machine) specifies which computer is to to abort a
shut
>down. If the parameter is an empty string () then the local machine is
>specified.
>
>This function will return TRUE (1) if the function is successful. The
>function
>is considered successful if it submits the request to abort a shut down and
>the
>request is accepted by the specified machine. Even if the specified machine
>is
>not shutting down but the abort request was successfully sent then the
>function
>is considered successful. Otherwise the function fails and returns FALSE
>(0).
>
>Just as with Win32::InitiateSystemShutdown() the SE_SHUTDOWN_NAME privilege
>(Force A Shutdown From A Remote System) must be enabled on the specified
>machine for the user who calls this function.
>
>If a user initiates a system shut down by means of hitting CTRL+ALT+DEL and
>specifying shutdown the operating system will initiate the shutdown with
a
>countdown of zero therefore this type of shutdown can not be aborted using
>this
>function.
>
>There is an alternative to the Win32::InitiateSystemShutdown() function
>which
>provides for more options although it only works on the local machine. This
>is the
>Win32::AdminMisc::ExitWindows() function:
>
> Win32::AdminMisc::ExitWindows( $ExitTpe );
>
>The only parameter ($ExitType) is a flag which specifies exactly how
Windows
>will exit. This can be any value from Table 9.25. This value can also be
>logically
>ORed with EWX_FORCE which will cause applications to quit without saving
>any open
>files. This is a harsh way of shutting down but could be necessary if an
>unattended
>shut down or logoff is required.
>
>If the function is successful it returns a TRUE value and begins its
>exiting
>process otherwise if fails and returns FALSE.
>
>
>Table 9.25: Various Exit Types for the Win32::AdminMisc::ExitWindows()
>function.
>EWX_LOGOFF.......Log the user off. Applications will be informed so the
>                 user may be prompted to save files.
>EWX_POWEROFF.....Force the system to shutdown and power off. The system
must
>                 support poweroff. On Windows NT the user account calling
>the
>                 function the SE_SHUTDOWN_NAME privilege.
>EWX_REBOOT.......Shut down the system and reboot the computer. On Windows
NT
>                 the user account calling the function the SE_SHUTDOWN_NAME
>                 privilege.
>EWX_SHUTDOWN.....Shut down the system but don't reboot. On Windows NT the
>user
>                 account calling the function the SE_SHUTDOWN_NAME
>privilege.
>
>
>NOTE:
>Both the Win32::InitiateSystemShutdown() and Win32::AbortShutdown() have
>been moved
>out of the Win32 extension if Perl 5.005. The source code suggests that it
>will be
>moved to other extensions but does not indicate which ones.
>
>dave
>
>--
>=================================================================
>Dave Roth                                ...glittering prizes and
>Roth Consulting                      endless compromises, shatter
>http://www.roth.net                     the illusion of integrity
>Win32, Perl, C++, ODBC, Training
>rothd at roth dot net
>
>Our latest Perl book is now available:
>"Win32 Perl Programming: The Standard Extensions"
>http://www.roth.net/books/extensions/
>
>
>




------------------------------

Date: 14 Feb 1999 06:04:54 -0800
From: Russ Allbery <rra@stanford.edu>
Subject: Re: perl not always in /usr/bin/perl
Message-Id: <ylu2wp84jd.fsf@windlord.stanford.edu>

Jonathan Stowe <gellyfish@btinternet.com> writes:

> Some systems also will allow you to simply put:

> #!perl

> and the interpreter will be found in the path but that cannot be said to
> be portable at all.

Or even most.

windlord:/tmp> cat > testing
#!perl
print "hello world\n";
windlord:/tmp> chmod 755 testing
windlord:/tmp> ./testing 
 ./testing: Command not found.
windlord:/tmp> uname -a
SunOS windlord.stanford.edu 5.6 Generic_105181-11 sun4u sparc SUNW,Ultra-1

haven:/tmp> cat > testing
#!perl
print "hello world\n";
haven:/tmp> chmod 755 testing
haven:/tmp> ./testing 
 ./testing: Command not found.
haven:/tmp> uname -a
Linux haven.eyrie.org 2.0.35 #1 Sun Oct 4 17:37:21 PDT 1998 i586 unknown

-- 
#!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker
$^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD gD,
 00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{
rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/ #y,d,s,(\$.),$1,gee,print


------------------------------

Date: Sun, 14 Feb 1999 06:12:44 -0800
From: lr@hpl.hp.com (Larry Rosler)
Subject: PFR: Compute offset of local timezone from UTC
Message-Id: <MPG.113079bbe6a15db2989a3b@nntp.hpl.hp.com>

Here's a simple (once you think of it) function that lets perl do the 
heavy work of computing the offset of the local timezone from UTC.

[This is a resubmittion of the identical code that you may have seen.  I 
realized that I forgot to include the keyword 'timezone' for indexing.]

#!/usr/local/bin/perl -w
use strict;

# tz_offset: Compute the offset of the local timezone from UTC.
# Larry Rosler, February 13, 1999

# tz_offset() returns the offset of the local timezone from UTC,
# in hours (and fractions).  For example, (North American) Eastern
# Standard Time is -5, India Time is +5.5.  This convention conforms
# to international usage, but has the opposite sign of that used by
# the Unix TZ environment variable.

sub tz_offset {
    my $now = time;
    my ($l_min, $l_hour, $l_year, $l_yday) =
                            (localtime $now)[1, 2, 5, 7];
    my ($g_min, $g_hour, $g_year, $g_yday) =
                               (gmtime $now)[1, 2, 5, 7];
    ($l_min - $g_min)/60 + $l_hour - $g_hour +
        24 * ($l_year - $g_year || $l_yday - $g_yday)
}

-- 
(Just Another Larry) Rosler
Hewlett-Packard Company
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com


------------------------------

Date: Sun, 14 Feb 1999 15:58:37 GMT
From: Andrew Winkler <andrew@winklers.org>
Subject: putting keystrokes into the keyboard buffer in windows
Message-Id: <36C6F2AC.8E11743@winklers.org>

Is there a way to emulate keystrokes and mouse movement/clicks
in Perl? Perhaps a hook into the SendKey function? Thanks, Andy



------------------------------

Date: 14 Feb 1999 12:18:58 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: Python vs. Perl vs. tcl ?
Message-Id: <7a6evi$5o6$1@gellyfish.btinternet.com>

On Sun, 14 Feb 1999 01:46:21 -0600 Tad McClellan wrote:
> Jonathan Stowe (gellyfish@btinternet.com) wrote:
> 
> : Worry not I am working on a version of FlameReader (tm) that will act as a
> : filter to your newsfeed and will ensure that the appropriate flameage
> : is inserted as necessary.  It can be configured so that both inward and
> : outward feeds can be filtered as required - just think the luxury of a
> : flamewar without any typing on your (or anyones) part.
> 
> 
>    Yes but, would the target of the flame believe that they were
>    being flamed by a person rather than by a program?
> 
>    Now that would be something!
> 

Actually I've had some doubts about certain respondents on this group for
a while ;-}

> 
> 
>    Hey! What language are you gonna write that in?
> 

I dunno assembler maybe or perhaps RPGIII

>    It better be the *right* one or this thread could end up
>    slipping into the abyss...
> 

Thus fixing the bug in JDF's newsreader ... ;-}

/J\
-- 
Jonathan Stowe <jns@btinternet.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>


------------------------------

Date: Sun, 14 Feb 1999 16:18:54 GMT
From: hb@verum.de
Subject: Re: Samba access w/ perl
Message-Id: <7a6t19$j5n$1@nnrp1.dejanews.com>


> We have a samba network here. I would like to make it more convenient for this
> organization to find things on it. Are there perl modules allowing me to
access
> SMB shares using Perl.

Dear Hasan,

Maybe try SMB.pm e.g. at http://www.pk.edu.pl/ftp/network/samba/smb2www/SMB.pm
(have not yet tried it). An alternative e.g. under linux would be to smbmount
the drive first via system call and then run perl on it. With the latter
approach, I do however have a problem in running the File::Find::find command
recursively from Linux 2.0 on a smbmounted NT 4.0 drive: File::Find::find only
finds the files in the current directory but does not recurse the child
directories. The script behaves well when directly run from Perl 5.04 for Win
without smbmount. Comments on this very welcome.

Regards,

Holger Blasum, Munich

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


------------------------------

Date: Sun, 14 Feb 1999 08:20:20 -0800
From: Bill Garrett <bgarrett@hamilton.net>
To: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: Shell access?
Message-Id: <36C6F7C0.3EEEA77C@hamilton.net>

Can I have both win 3.1 and linux installed on my computer.
I checked at linux.org and there are so many distributions and other stuff I don't
know what I want.

Jonathan Stowe wrote:

> On Sat, 13 Feb 1999 18:32:38 -0800 Bill Garrett wrote:
> > What good is it going to do though to have linux but not perl??
> >
>  Well for aa start most recent Linux distributions have Perl already
> installed and a web server and so on and so forth.  The version of Perl
> may not be the latest but that is easily remedied because all but the most
> microscopic distributions of Linux also include all of the tools required
> to build a new Perl from the distribution files (unless of course you
> choose not to install the development tools which would be a mistake).
>
> Installing Linux is not difficult if you get a reasonable distribution
> and is probably more amenable to learning about Perl than having to deal
> with the restrictions imposed by the sysadmin of some system on which
> you might get a shell account.
>
> Believe me it will be easier to get Linux on to some machine than persuade
> someone to give you an unrestricted shell account on their box.
>
> /J\
>
> --
> Jonathan Stowe <jns@btinternet.com>
> Some of your questions answered:
> <URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
> Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>



------------------------------

Date: 14 Feb 1999 15:15:52 GMT
From: ran@netgate.net
Subject: Re: Shell access?
Message-Id: <7a6pb8$otd$1@remarQ.com>

In <36C6F7C0.3EEEA77C@hamilton.net>, Bill Garrett <bgarrett@hamilton.net> writes:
>Can I have both win 3.1 and linux installed on my computer.

Yes.  And,  if all you want is a text-mode shell to play with,  your 
best bet might be mini-linux,  a minimal system that can be fairly 
easily installed alongside DOS,  without even having to repartition your
hard drive (though you might want to,  since mapping linux files onto 
the DOS filesystem causes a bit of a performance hit).

If you want to do a more full-blown installation,  skim some of the 
linux newsgroups (especially comp.os.linux.setup),  looking for postings
along the lines of "Wow!  That was easy!"  to find out who's doing the 
simplest installation kits these days.  It varies from release to 
release,  as different developers try to out-do one another in ease of
setup.

Ran




------------------------------

Date: 14 Feb 1999 12:25:16 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: String splitting.
Message-Id: <7a6fbc$5o9$1@gellyfish.btinternet.com>

On Thu, 11 Feb 1999 19:48:06 -0500 Steve Palincsar wrote:
> I'm pretty sure what Frank means by "full stop" is
> the character we speak of as "period".  

Hey I'm *certain* thats what he means.  Not everyone for whom English
is a second language learns it from MTV you know ;-}
 
>                                         In this case,
> the point is the special meaning of . in a regexp,
> if that is the chosen solution.
> 

Ah but that is a dot rather than a full stop/period isnt it :-?

/J\
-- 
Jonathan Stowe <jns@btinternet.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>


------------------------------

Date: 14 Feb 1999 08:41:13 PST
From: Wayne & Sheila Wissner <Wissner@concentric.net>
Subject: Re: Very Very Newbie- re: perl5.0042-bindist.04bc
Message-Id: <36C6FC9F.1B271367@concentric.net>

To run qm do this:
Press the start button on the lower left of windows95 or windows98, whatever
you are running. Click where it says "run". Type this in the run box: perl qm
   Then click on the enter button.  This will run quotemonster and pick up the
current stock quotes. To find the printout, you will need to look in
C:\perl\bin.  Then look for a file that says quotes.prn.  Open this up with
WordPad and you will see your stock quotes. If you want to run a series of
dates, you will have to type this instead:
perl qm 980212 990212
   This will give you stock quotes between 2-12-98 and 2-12-99.  You can put in
any dates you want, but they need to be in the yymmdd format.
  I assume you have found the ticker file and know how to put the ticker
symbols in there so that you can the info on the stocks you want.
   You can alter the qm script for your individual purposes by opening it up in
WordPad. There are notes in there by the author and you can email him for
advice.
Sheila



Fuzzy wrote:

> I believe win32 perl runs on a command line.  So you should essentially see
> a command line program
>
> perl programname.pl
>
> Enter your name? _
>
> That sort of thing.
>
> You could try c:\perl\perl.exe wherever\qm
>
> Fuzzy
>
> ron <bmusee2@pacbell.net> wrote in article
> <36c077b8.6800689@news.pacbell.net>...
> > I am running Win98 and am totally new to Perl..I am trying to run a
> > program that operates in Perl (quotemonster) which gathers stock data
> > at the end of the day.   I downloaded perl5.0042 -bindist.04bc and
> > installed it via default to C:\Perl etc.  Now my very nieve question
> > is ---How do I run a program ?  The quotemonster program has the
> > script but I have no concept of how to run it.   I run perl and it
> > opens a dos box I then enter qm and nothing happens  can anyone tell
> > me what the commands should look like and should it be in dos?
> >



------------------------------

Date: 12 Dec 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Special: Digest Administrivia (Last modified: 12 Dec 98)
Message-Id: <null>


Administrivia:

Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing. 

]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body.  Majordomo will then send you instructions on how to confirm your
]subscription.  This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.

The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V8 Issue 4892
**************************************

home help back first fref pref prev next nref lref last post