[6602] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 227 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Apr 3 13:16:27 1997

Date: Thu, 3 Apr 97 10:00:27 -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           Thu, 3 Apr 1997     Volume: 8 Number: 227

Today's topics:
     At-sign cancels backslash? (David Winfrey)
     Compile problems on SCO (New Troll)
     Cookie FAQ <questions@cookiecentral.com>
     Equivalent perl functions as C <jason.kruse@teldta.com>
     error conditions on close of open( PIPE, "cmd |" ) <edhill@strobe.weeg.uiowa.edu>
     Re: File Read/Write Problem (Nathan V. Patwardhan)
     Re: Getting the contents of a URL. (Jason Bodnar)
     Re: Help doing a print from an array (Nathan V. Patwardhan)
     Help: Perl 5.003 build on Solaris 2.5.1 failing test mgrabenstein@isinet.com
     newbie -- can I do this w/Macperl? (Elizabeth C. Bodenmiller)
     Re: Ousterhout and Tcl lost the plot with latest paper <thant@acm.org>
     Re: Perl CGI Problem <roger@acm.vt.edu>
     Re: Perl CGI Problem <mrski@gist-inc.com>
     Re: Perl vs. C/C++ <tchrist@mox.perl.com>
     Sun Netra i4 and Perl Bizarre! mgrabenstein@isinet.com
     Re: Turning output of command into input (Albert Schueller)
     Re: Unix and ease of use (WAS: Who makes more ...) (Tom Wheeley)
     Unknown object method 'div_start' when running GET (WWW (Fairey Simon)
     Re: Visual Perl++????? (Nathan V. Patwardhan)
     Wildcards for a list of filenames (Jon Hamlin)
     Re: Wildcards for a list of filenames (I R A Aggie)
     Re: Wildcards for a list of filenames (Nathan V. Patwardhan)
     Re: Wildcards for a list of filenames <seay@absyss.fr>
     Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)

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

Date: 3 Apr 1997 15:40:35 GMT
From: do.not.spam.dwinfrey@cpcug.org (David Winfrey)
Subject: At-sign cancels backslash?
Message-Id: <5i0j1j$718@news3.digex.net>

        $str1 = "@\x55\n";
        $str2 = "\x40\x55\n";
 
        print $str1;
        print $str2;
 
# In Perl 4.036 for MS-DOS, this produces:
#
#       @\x55
#       @U
#
# The at-sign seems to cancel the effect of the following
# backslash.  Is this a bug, or did I just miss something
# in the camel book?

Thanks, 
David Winfrey



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

Date: 3 Apr 1997 15:58:27 GMT
From: markc@krynn.chicks.net (New Troll)
Subject: Compile problems on SCO
Message-Id: <5i0k34$q6d@news2.widomaker.com>


Hi,

	I have a customer who is trying to compile perl 5.003 on his SCO UNIX
machine.  I don't have access to the machine so I can't play with options.  If
anyone has any ideas as to what might be causing the problem, suggestions 
would be much appreciated.

[..snip..]
        `sh  cflags libperl.a globals.o`  globals.c
        rm -f libperl.a
        ar rcu libperl.a perl.o malloc.o gv.o toke.o perly.o op.o regcomp.o dum$        cc  -L/usr/local/lib -o miniperl miniperlmain.o libperl.a -lintl -lsock$        ./miniperl configpm tmp
        sh mv-if-diff tmp lib/Config.pm
File lib/Config.pm not changed.
        ./miniperl -Ilib pod/pod2html.PL
*** Termination code 139 (bu21)

Thanks,
mark

---
Tomorrow will be canceled due to lack of interest.


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

Date: Thu, 03 Apr 1997 17:57:09 +0100
From: Andrew Pitt <questions@cookiecentral.com>
Subject: Cookie FAQ
Message-Id: <3343E165.4BC7@cookiecentral.com>

Persistent Cookie FAQ

Hi, we have constructed a Persistent Cookie FAQ. Full information upon
cookies can be found at http://www.cookiecentral.com. If you have any
questions please mail: questions@cookiecentral.com.
                          

Q. Are cookies used to get a "snap shot" of my hard drive? Is it done?
and how?

A. Cookies cannot be used to get data or view data off your hard drive,
early
Javascript cookies could do this but this problem was plugged. Cookies
can
Only get data from what has been written to the cookie file. 
                     
------------------------------------------------------------------------
Q. Can someone from one site access the cookie info written by another
site?

A. A site can only access a cookie which has been set from its own
domian, It cannot access any other cookies from your computer. Sites
could access other sites cookies, again this problem was plugged a long
time ago.
                 
------------------------------------------------------------------------
Q. Are there other means of tracking web surfers than cookies? 

A. There are many ways in which you are traced on the web; cookies are
more like a personal tag, some people see then as the worst invasion of
privacy. They are the only tracking device that we can control. Every
time you log on to a web site you give away a lot of information :- 

n Service provider. 
n Operating System. 
n Browser. 
n Screen resolution and amount of colours. (only in IE) 
n CPU type. 
n Your service provider's server (an087.du.pipex.com for dial pipex, but
this changes everytime you log on). 
n You IP address (again, this changes)
n What server you was on last. 


You can stop this information from being given away by going to
http://www.anonymizer.com; this site works like a proxy server.
              
------------------------------------------------------------------------
 Q. Are cookies a from big brother the same as ones in a online shop?

 A. Well there is a bit of both, the function of the cookie is the same
but they can be implemented in different ways. Cookies can used to store
info about where you go, and what banners you click, so companies can
put specialized Advertisements and data which appeal to you. It's a bit
like someone putting a tag on you when you go into a supermarket and
then following you around the store. Some folk consider this loss of
privacy offensive.

But also they can be used for innocent things like storing what you have
brought in an online shop, by assigning a ID number in a cookie. But
whatever they are used for, they are the same thing. They are a valuable
function on the web.

------------------------------------------------------------------------
Q. I use Internet Explorer 3 and have 2 cookies -- MM2048, MM256. they
arrived before I discovered the warning message. I got rid of other
cookies but I am not able to delete these. I get a error message when I
try to delete them. Any suggestions? I use Windows 95.

A. These are not cookies. They are part of the IE 3.0 browser cache. I
myself do not allow cookies to be stored, but I also have mm2048.dat and
mm256.dat. They are nothing which you have to concern yourself. I don't
know why part of the cache is in the windows/cookies directory.

I don't know what these files do, but they seem to be updated when a
cookie is added to the cookies directory. As an experiment, I accepted a
cookie from doubleclick.com. I then ran the unix-like strings utility
against these files. strings prints any text strings in a file.
It only found this in mm2048.dat: 

Client UrlCache MMF Ver 3.2 

It found a lot of stuff (summarizing my cookies??) in mm256.dat. For
your information, I am including the cookie sent by doubleclick, and the
list of strings I found in mm256.dat. The top doubleclick cookie is the
last one I received. The others are other experiments. 


3d64b51
doubleclick.net/
1468938752
31583413
511722784
29112146

Here is what strings reported on mm256.dat:

Client UrlCache MMF Ver 3.2 
w"f2 

cookie:dwf@doubleclick.net/
dwf@doubleclick.txt
+"A
+"A

cookie:dwf@ad.doubleclick.net/
dwf@ad_doubleclick.txt
3""6g
3""6


cookie:dwf@gtplacer3.globaltrack.com/ 
dwf@gtplacer3_globaltrack(1).txt
D"12S
D"12
                        
------------------------------------------------------------------------
Q. I set my browser to alert me before accepting cookies. In the dialog
box in which the cookie offer is made, there is always the implicit
threat that if you don't take the offer, you will not be able to enjoy
the site you are visiting as well as you anticipate? 

A. While not accepting a cookie will probably not reduce the experience
of the site, obviously if you go into a online shop and reject a cookie
you cannot shop properly. It is possible for a site to not operate
properly if cookies are not accepted. I do not know how many fall into
this category right now. 
Cookies was firstly developed by Netscape so they want cookies to be
used, the message box seems to be a scare. Most people don't set their
browser to warn them before accepting cookies because its really
annoying when a site wants to set 10 cookies. It would be quite easy for
Netscape or Microsoft just to decline cookies automatically but this
would render them useless.  I work on the thoery that there is less harm
declining them than accepting them. Netscape Communicator beta2, has a
option to automatically reject cookies.

------------------------------------------------------------------------                          
Q. Are Cookies Really Dangerous ?

A. A normal text based cookie cannot be of any danger to your computer.
Whether or not cookies can be dangerous has to do with whether or not a
file is "executable," meaning if it's a program rather than data. UNIX
files, for instance, have some combination of the properties "readable,"
"writable" and "executable." The executable property is necessary to
enable a program in a file to do something. If a cookie isn't stored in
an executable format for that platform, it cannot do something hostile.
And if you couldn't trust your browser to store that cookie in an
acceptably secure manner, you probably wouldn't be using it at all. Most
cookies are not executable, and I have not come across one. Most Cookies
are stored as text files and cannot be dangerous or pass on viruses.

------------------------------------------------------------------------                        
Q. What Use Is The Information We Reveal To Web Sites ?

A. The information that people reveal to each Web site they visit can be
used by system administrators to build extensive personal profiles of
visitors. By automatically placing a Cookie on visitors' Web browsers,
Servers register data on the Cookie. This allows administrators to view
the. This allows administrators to view the history of sites users have
visited, the advertisements they have viewed and the online transactions
they have conducted. Again, sites can only access cookies from their own
domain. While Cookies can be useful in some situations (i.e. in saving a
user's password to a particular site), some people see this as an
constitution of invasion of privacy. Remember a web site only know the
data which you have entered.

------------------------------------------------------------------------
Q. For What Purpose Does doubleclick Use Cookies?

A. DoubleClick uses a tracking cookie to stealthily follow your
movements between Web sites, build a centralized profile of your likes
and dislikes, then serve you a targeted ad banner, all without your
knowledge, if you have no knowledge of cookies.

------------------------------------------------------------------------
Q. Why Do Some People Dislike Cookies?

A. Cookies are sometimes disliked because they can set and perform
functions without the user knowing. But couldn't one view computers in
general as setting and performing functions without the user knowing? My
machine swaps programs in and out every few seconds without telling me
about it. Some people don't like a file which contains information about
where they have been, and what they do, if they can stop it, the type of
information which is invaluable to some companies. Cookies are usually
used for simple things like to store your specification of your start
page, or your user id's and or passwords, but like most things they
maybe manipulated to do bad things. Cookies can used to track you on the
net, what sites you go to what you like and so on, this is not the only
your tracked by big brother on the net, for instance when you submit a
auto search in Internet Explorer it is routed through Microsoft servers.
Cookies was originally designed to store passwords or page settings, but
a cookie can contain any data which a administrator wants. 

------------------------------------------------------------------------
Q. How Do I Stop Cookies In Netscape 3.0?

A. In the Netscape directory there should be a file called cookie.txt
(or magiccookie on the Mac). Search for this file if you cannot find it.
This file is where all the all the cookie entries are found. You can
delete the contents of this file regardless of the warning at the top of
the page. After the contents have been deleted save the file and set its
attributes to read-only, hidden and system. This will stop cookies from
being set persistently on your disk, but it will not stop cookies from
being set in memory while Netscape is running. When you exit Netscape
these cookies will be cleared. This is probably a good alternative to
have Netscape alert you when a site wants to set a cookie, as this
becomes more of an annoyance than a prevention. Another good way to stop
cookies is to use some software. 

------------------------------------------------------------------------                
Q. How Do I Stop Cookies In Internet Explorer 3.0?

A. Internet Explorer 3.0 no longer stores cookies in a single file, but
each cookie as a separate file in the windows\cookies directory. This
makes it harder to stop cookies, but if you want to stop individual
cookies, like the doubleclick cookies, you can corrupt the cookie by
deleting the contents then saving the file and setting its attributes
read-only, hidden and system. This means when you log onto a site which
has set that cookie it cannot read any information off your cookie or
give you a new one. In a fashion similar to Netscape you can set IE to
alert you before accepting cookie. To do this go to the View Menu
|Options | Advanced tag and click on "Warn Before Accepting Cookies".



Copyright ) 1997 Cookie Central.

----------------------------
Cookie Central
http://www.cookiecentral.com
questions@cookiecentral.com
-----------------------------




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

Date: Thu, 03 Apr 1997 09:47:49 -0600
From: jason kruse <jason.kruse@teldta.com>
Subject: Equivalent perl functions as C
Message-Id: <3343D125.383C@teldta.com>

Well, I've tried to wrap my brain around this for the past four days or
so and I've just about given up.  I wrote a fairly simple  program in C
and am trying to translate it to perl and am not quite getting it
right.  Here's what I'm trying to do.

I create two sockets, a and b,  bind them to two different ports, and
set them into a list, incomming, using FD_SET().  I use this list to
select() on them.  If a is set, I set the resulting socket from the
accept() into the incomming set.  If b, I add it into a separate set,
outgoing, for sockets which are listening.

I like the structure of FD_* and select in C (You just get used to these
things I guess) and was wondering if there were an easy way to get this
kind of interface into perl or if it already exists.  I've tried to use
IO::Select, but I can't seem to get it working with it.

Example code:

void main_loop (int a, int b) {
  fd_set incomming, outgoing;
  FD_ZERO(&incomming);
  FD_ZERO(&outgoing);
  FD_SET(a, &incomming);
  FD_SET(b, &incomming);

  while (1) {
    select(256, &incomming, NULL, NULL, NULL);
    
    for (i = 0; i < 256; i++) {
        if (FD_ISSET(i, &incomming)) {
           if (i == a) {
                j = accept(i, &blah, &blah_len);
                FD_SET(j, &outgoing);
           }
         } else if (i == b) {
                j = accept(i, &blah, &blah_len);
                FD_SET(i, &incomming);
         } else {
               read_data(i);
               FD_CLR(i);
         }
      }
    }
}

A second problem I seem to be having is the way that accept is used in
perl.  What should you pass to it as the newsocket?  If you attempt to
reuse the call a second time while the first is connected you get an
error.

Any help would be appreciated.

 jason


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

Date: 03 Apr 1997 11:13:33 -0600
From: Ed Hill <edhill@strobe.weeg.uiowa.edu>
Subject: error conditions on close of open( PIPE, "cmd |" )
Message-Id: <ublo70m3lu.fsf@strobe.weeg.uiowa.edu>

Hello,

I am seeing some odd output from what I think is a simple IPC script.  I am
running on an AIX 4.1.4 box running Perl 5.003_95 (although I don't think the
problem is a problem with perl - just my understanding of it).  I have the
following segment of code to make a call to the ping program and parse it's
output (yes I know about Net::Ping - I use this for hosts that don't run the
echo tcp service).  This code is really close to what is in the perlipc man
page (I think anyway).

This code seems to work ok, but I get a CHLD signal, and when I close the
connection, I get an error message.

    $SIG{'PIPE'} = \&pipe_handler;
    $SIG{'CHLD'} = \&pipe_handler;

    $myping = "/usr/sbin/ping -n -c 2 uidpjes2.adp.uiowa.edu"
    &debug( "$myping 2>&1" );

    open( PING, "$myping 2>&1 |") || warn "can't call ping: $!";
    while( <PING> ) { 
       print $_;
       if( /bytes from/ ) { $pingok = 1; }}
    close PING || warn "bad ping: $! $?";

    sub pipe_handler {
       my( $signal ) = @_;
       &debug( "caught PIPE or CHLD ($signal) signal." );
       $SIG{$signal} = \&pipe_handler;
    }

Here is the output that I am seeing.

    Thu Apr  3 10:45:11 1997 /usr/sbin/ping -n -c 2 uidpjes2.adp.uiowa.edu 2>&1
    PING uidpjes2.adp.uiowa.edu (128.255.100.101): 56 data bytes
    64 bytes from 128.255.100.101: icmp_seq=0 ttl=59 time=34 ms
    Thu Apr  3 10:45:12 1997 caught PIPE or CHLD (CHLD) signal.
    64 bytes from 128.255.100.101: icmp_seq=1 ttl=59 time=7 ms

    --- uidpjes2.adp.uiowa.edu ping statistics ---
    2 packets transmitted, 2 packets received, 0% packet loss
    round-trip min/avg/max = 7/20/34 ms
    bad ping: No child processes -1 at /local/admin/bin/spong-network line 205.

I'm sure if I ignored the error message and went mearily on my way I would
never have even noticed this (which is what I usually do 8-), but now that I
have noticed it, I would like to understand what is going on.  Is this normal
behavior?  The perlipc man page looks for this condition on close, so I
assume that I should be as well...

In my mind it makes sense, since the ping process does in fact exit when it
is done spitting out output, so I would expect to get the CHLD signal, and
even the error message makes some sense.  But I wanted to here from others
that this is ok/expected behavior.

-- 
-Ed Hill (ed-hill@uiowa.edu)
Systems Administrator - Information Technology Services - University of Iowa
"I am Homer of Borg, prepare to be assim... Ooooooooh donuts!"


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

Date: 3 Apr 1997 15:21:55 GMT
From: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: File Read/Write Problem
Message-Id: <5i0huj$d9j@fridge-nf0.shore.net>

brian nahas (bnahas@darwin.cc.nd.edu) wrote:
: 	I need a little help.  I am trying to open a file
: for read and write access.  I am trying to read up to a certain
: point and then write over the rest.  I am opening the file using:
: open(FILEHANDLE,"+<filename");

You need to use seek().  If you just use +< without seeking, you will
experience what you're experiencing now.  +> creates the file r/w.

Don't forget that +< won't create a file.  I'd strongly suggest looking
at some Perl documentation, like the POD files that were included with
your distribution.

--
Nathan V. Patwardhan
nvp@shore.net



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

Date: Thu, 03 Apr 1997 15:46:20 GMT
From: jason@cimedia.com (Jason Bodnar)
Subject: Re: Getting the contents of a URL.
Message-Id: <3343d099.252254370@news.onr.com>

SFAIREY@dsl.uk.ibm.com (Fairey Simon) wrote:

>Hi,
>
>In my efforts to convert a friend to Perl ( he is a bit obsessed with
>Java )
>I am trying to find out how to do something. Having never used the
>HTML/WWW part of Perl I am not sure where to begin.
>
>What he wants to do is have a script that when supplied with a URL will
>return the contents of the page in text format.
>
>I am going to try and look into the HTML/WWW side of Perl but if any one
>has any suggestions I would appreciate it, even if it is only to tell me
>it is
>not really very easy to do.
>

Take a look at the LWP module. It'll return the resource found at a
URL. If you want it in plain text rather than HTML, look for Tom C's
striphtml script.


-- 
Jason C. Bodnar
jasonb@onr.com
Internet Programmer
Cox Interactive Media


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

Date: 3 Apr 1997 15:28:29 GMT
From: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: Help doing a print from an array
Message-Id: <5i0iat$d9j@fridge-nf0.shore.net>

Allen May (allenm@lexis-nexis.com) wrote:

Try information below:

:  #!/serve/bin/perl
: unless (open(USERS,"/home/achilles/allenm/perl/user_list")) {
:         die "Sorry, can't open /home/achilles/allenm/perl/user_list\n";

Don't forget to use $! .  It will give you the proper error message.
I eradicated your loop, since it was a bit much.  :-)

Try this:

#!/serve/bin/perl

$admin_file = '/home/achilles/allenm/perl/user_list';

open(USERS, "$admin_file") || die("admin file error: $!"); # use the $! !
@TESTS = <USERS>;
close(USERS);

foreach (@TESTS) {
   chop;
   print "User: ",$_,"\n";
}

OR

open(USERS, "$admin_file") || die("admin file error: $!") # use the $! !
while(<USERS>) {
  chop;
  print "User: ",$_,"\n";
}
close(USERS);

--
Nathan V. Patwardhan
nvp@shore.net



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

Date: Thu, 03 Apr 1997 08:41:03 -0600
From: mgrabenstein@isinet.com
Subject: Help: Perl 5.003 build on Solaris 2.5.1 failing test
Message-Id: <860077968.20213@dejanews.com>

I have gcc version 2.7.2.1 installed and I am trying to build Perl v5.003
on a Solaris 2.5.1 (SunOS 5.5.1) machine.

I get through configure just fine, the whole thing builds and I did not
notice any problems at compile time.

When I do a "make test" I get a "perl stat: failed test 4" also "Perl
Study: failed." It gets a score of only 98% :-)

Any ideas why stat is failing? Is there some Solaris patch I am missing?

Thanks,
   Mike
   mgrabenstein@isinet.com
   #include <std.disclaimers>

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet


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

Date: 3 Apr 1997 17:04:02 GMT
From: nynaeve@umich.edu (Elizabeth C. Bodenmiller)
Subject: newbie -- can I do this w/Macperl?
Message-Id: <5i0nu2$p7m@lastactionhero.rs.itd.umich.edu>

First of all -- I apologize profusely for my previous empty message -- I
was looking for my text editor in the wrong place.  Now, for my plea for
help:
--------------
I know next to nothing about perl or applescript, but I need to figure 
out whether I can use one or both of them to create web pages on-the-fly 
from FileMaker and ProCite databases.  

Can anyone tell me if:

1)  this is possible?
 
2)  there are examples of such code/scripting somewhere that I can 
basically steal?

I've been looking through a perl book, but having only basic (Hello 
World-type) programming skills, I can't figure out where to even look.

Thank you.

Elizabeth Bodenmiller
-----------------------------------------------------------------------------
"I'm just like any modern woman, trying to have it all: a loving husband,
a family....It's just I wish I had more time to seek out the dark forces
and join their hellish crusade...."                    -- Morticia Addams
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
http://www.si.umich.edu/~nynaeve                        nynaeve@umich.edu



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

Date: Thu, 03 Apr 1997 07:48:12 -0800
From: Thant Tessman <thant@acm.org>
Subject: Re: Ousterhout and Tcl lost the plot with latest paper
Message-Id: <3343D13C.41C6@acm.org>

Chris Bitmead wrote:

> [...]  Remember that Sun is pushing Tcl for some obscure reason, and 
> Ousterhout is apparently working for Sun now,  [...]

I've been told (by friends who follow this stuff more closely than I do) that 
Sun has already lost control of Java to the Evil Empire.  This might explain it.

-thant


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

Date: 3 Apr 1997 15:26:02 GMT
From: "Roger Bodnar Jr." <roger@acm.vt.edu>
Subject: Re: Perl CGI Problem
Message-Id: <01bc4042$eb3130e0$8cf2ad80@iddserver>

I forgot to mention this in the above message but in the error log file for
perl I get the following:

*** PATH OF PERL SCRIPT error message at: 1997/04/02 15:23:03
INTERNAL ERROR: PerlParse did not exit clean!!!!

Any further ideas?
Roger


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

Date: 3 Apr 1997 15:28:12 GMT
From: "Mitch Duszynski" <mrski@gist-inc.com>
Subject: Re: Perl CGI Problem
Message-Id: <01bc4043$8f15fa60$a3df94ce@mrski.gist-inc.com>

> I am running IIS 2.0 on NT 4.0 server and using perl 5.001 build 110 I
> believe....I am trying to run perl scripts as cgi scripts but every time
I
> go to do that the brower goes to download the requested perl file instead
> of executing it.  
> Any thoughts?  The perl install did place a mapping for .pl files to the
> perl binary in the registry..

I am having the same problem.  If I find the answer I will be sure to let
you know.


-- 
Mitch "SKI" Duszynski
Global Information Systems Technology, Inc.



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

Date: 3 Apr 1997 16:30:53 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Perl vs. C/C++
Message-Id: <5i0lvt$l02$1@csnews.cs.colorado.edu>

 [courtesy cc of this posting sent to cited author via email]

In comp.lang.perl.misc, 
    Douglas Seay <seay@absyss.fr> writes:
:>         3) What about support and documentation?
:
:There is no "support" if you're thinking about paying someone

False.  See the FAQ.   "The Perl Clinic" covers this.

BTW, the standard release comes with over 700 pages of documentation.

--tom
-- 
	Tom Christiansen	tchrist@jhereg.perl.com

IBM: It may be slow, but it's hard to use.
 - Andrew Tannenbaum <trb@ima.ima.isc.com>,  author of Minix and Amoeba


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

Date: Thu, 03 Apr 1997 10:41:12 -0600
From: mgrabenstein@isinet.com
To: mgrabenstein@isinet.com,malvarez@isinet.com
Subject: Sun Netra i4 and Perl Bizarre!
Message-Id: <860085273.25884@dejanews.com>

First the problem: While building perl, I do a "make test" and get a score
of 98.94% Two tests fail:
op/stat........FAILED on test 4
op/study.......Broken Pipe
ok

I did not notice any compilation errors.

I have built this two ways.
First: Using gcc v2.7.2.1 on the Netra i4 I get the above results.
Second: Using Sun's C compiler on a Ultra-1 170 box. When built there the
"make test" reports 100%. When I tar'd the entire thing up and ftp'd it to
the Netra i4 and did a "make test" I got the above 98.94% I did not
re-compile on the Netra i4 !!!

Any ideas what might be wrong with my Netra i4 ??

Please, CC me on your response. TIA.

Thanks,
   Mike
   mgrabenstein@isinet.com
   Technical Specialist, ISI
   #include <std.disclaimers>

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet


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

Date: 3 Apr 1997 15:55:49 GMT
From: aws@schuelaw.whitman.edu (Albert Schueller)
Subject: Re: Turning output of command into input
Message-Id: <slrn5k7kok.47b.aws@schuelaw.whitman.edu>

On Wed, 2 Apr 1997 22:41:26 -0500, Shane DeRidder <shane@together.net> wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>
>On 3 Apr 1997, Bob Bell wrote:
>
># 	I'm a fairly experienced programmer, but I'm new to Perl, so I
># appreciate your patience.  I am looking to use Perl to run an external
># program.  I know this can be done using the system() command.  How can I
># get to the output of that command?  Say I wanted the results of a "who". 

Another quick way, if you only want to do it once in the script is:

$who = `who`;

This is for unix, don't know about other OS's.

Albert


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

Date: Thu, 03 Apr 97 14:19:00 GMT
From: tomw@tsys.demon.co.uk (Tom Wheeley)
Subject: Re: Unix and ease of use (WAS: Who makes more ...)
Message-Id: <860077140snz@tsys.demon.co.uk>

In article <E80CqL.nr4@roan.co.uk> mike@roan.co.uk "Mike Jagdis" writes:

> >Copyright was designed to protect authors of printed works.
> 
> I think you need to reread the Copyrights, Designs and Patents Act
> (and maybe the Berne convention as well). Non-printed works are
> *explicitly* covered (such as electronic storage). Computer programs
> are *explicily* covered. Databases are *explicitly* covered (as an
> arrangement). Computer *generated* works are *explicitly* covered
> (where the legal author is the person who caused the work to be
> generated).

No, I said copyright was *designed* for printed works.  It was extended
to the software industry when that appeared.  The principles of copyright
law do not work well for software.

>   In fact get a good book on computer law as well. They generally
> include pretty good commentaries on such aspects.
> 
> >The choice is whether you define software as
> >Science (where knowledge is shared) or as literature.  The fact is that due
> >to the malleability of software, it is science.
> 
> This is opinion not fact. The _fact_ is that your opinon is at odds
> with existing laws. Legally software is no more science than a cheap
> paperback novel - it's just an expression of some ideas in a given
> language. However, some of the underlying algorithms (the ideas
> being expressed) may be classed as inventions and be patentable in
> one or more countries.
>
>   My personal opinon is that professionals should know far more about
> the laws under which they work than they appear to! :-)

I was not stating the laws involved.  I was talking about the concepts
behind software.  Is it illegal to present an argument?

-- 
:sb)



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

Date: Thu, 3 Apr 1997 15:59:00 +0100
From: SFAIREY@dsl.uk.ibm.com (Fairey Simon)
Subject: Unknown object method 'div_start' when running GET (WWW)
Message-Id: <cGBapDataScienceslDATASCIEXCH0100074149@farnnt15.datasci.co.uk>

Hi,

When I run GET -o text
http://www.fa-carling.com/news/nffc/nf02109601.html
( or any of the other news pages there )

I get the following
Can't locate object method "div_start" via package "HTML::FormatText"
at /usr/local/lib/perl5/site_perl/HTML/Formatter.pm line 56.

I am running Perl 5.003 on AIX 3.2.5 and version 5.00 of libwww.

Any suggestions appreciated as HTML etc is not one of my strong points
:(

Thanks,
Simon



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

Date: 3 Apr 1997 15:29:11 GMT
From: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: Visual Perl++?????
Message-Id: <5i0ic7$d9j@fridge-nf0.shore.net>

Josef Siu-wai Leung (siuwl@acm.org) wrote:
: I saw a news message in this newsgroup that Microsoft is going to release 
: a Perl++ product. BUT I failed to find the relevant news from 
: www.microsoft.com.  Please post a note if you find any evidence to proof 
: or disproof.  Thanks.

It's likely that somebody got the April Fool's spirit.

--
Nathan V. Patwardhan
nvp@shore.net



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

Date: 3 Apr 1997 15:29:40 GMT
From: jhamlin@ai.uga.edu (Jon Hamlin)
Subject: Wildcards for a list of filenames
Message-Id: <5i0id4$2l9$1@cronkite.cc.uga.edu>

I have a pattern for filenames (say, *.bak) which is user specified (so
it's not hard coded into the Perl code).  Is there a way to take this and
get a list of files that match that pattern using readdir and grep?  I'm
at a loss since the regular expressions in Perl wouldn't really see *.bak
the same way the shell would -- Perl would really want .*bak or something 
similar, right?

------------------------------------------------------------------------------
Jon Hamlin, Sys Admin                   jhamlin@ai.uga.edu
Artificial Intelligence Center          http://www.ai.uga.edu/~jhamlin
University of Georgia                   Voice: (706) 542-0358


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

Date: Thu, 03 Apr 1997 11:33:51 -0500
From: fl_aggie@hotmail.com (I R A Aggie)
Subject: Re: Wildcards for a list of filenames
Message-Id: <fl_aggie-ya02408000R0304971133510001@news.fsu.edu>

In article <5i0id4$2l9$1@cronkite.cc.uga.edu>, jhamlin@ai.uga.edu (Jon
Hamlin) wrote:

+ I'm at a loss since the regular expressions in Perl wouldn't really 
+ see *.bak the same way the shell would

Correct. You'll have to use it as a file glob:

@files=<*.bak>;

See pg 55 of the Camel (2nd ed).

James

-- 
Consulting Minster for Consultants, DNRC

To cure your perl CGI problems, please look at:
<url:http://www.perl.com/perl/faq/idiots-guide.html>


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

Date: 3 Apr 1997 16:38:44 GMT
From: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: Wildcards for a list of filenames
Message-Id: <5i0mek$iu4@fridge-nf0.shore.net>

Jon Hamlin (jhamlin@ai.uga.edu) wrote:
: I have a pattern for filenames (say, *.bak) which is user specified (so
: it's not hard coded into the Perl code).  Is there a way to take this and
: get a list of files that match that pattern using readdir and grep?  I'm
[snip]

Yes.  This is documented in both editions of _Programming Perl_.

@files = grep(/\.pattern$/, readdir(DIR));

--
Nathan V. Patwardhan
nvp@shore.net



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

Date: Thu, 03 Apr 1997 17:54:57 +0100
From: Douglas Seay <seay@absyss.fr>
To: Jon Hamlin <jhamlin@ai.uga.edu>
Subject: Re: Wildcards for a list of filenames
Message-Id: <3343EEF1.29C9@absyss.fr>

Jon Hamlin wrote:
> 
> I have a pattern for filenames (say, *.bak) which is user specified (so
> it's not hard coded into the Perl code).  Is there a way to take this and
> get a list of files that match that pattern using readdir and grep?  I'm
> at a loss since the regular expressions in Perl wouldn't really see *.bak
> the same way the shell would -- Perl would really want .*bak or something
> similar, right?

If you want 100% compatability with the shell, use glob().
Be warned that it is a bad idea and can cause problems,
especially if you have a crappy csh.

Ff you tried 

	my @list = grep /*.bak/, readdir(DIR);

you wouldn't get what you want.  You would need to write
some sort of Perl RE syntax to shell glob syntax conversion
routine (maybe there's one in CPAN, dunno).

I'd just make the user enter in Perl's RE syntax.  But
as I'm the user of most of my scripts, that ain't no
big deal.  For me "\.bak$" is as easy as "*.bak".

- doug


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

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


Administrivia:

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 227
*************************************

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