[30039] in Perl-Users-Digest
Perl-Users Digest, Issue: 1282 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Feb 16 09:09:50 2008
Date: Sat, 16 Feb 2008 06:09:05 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Sat, 16 Feb 2008 Volume: 11 Number: 1282
Today's topics:
Re: Any Idea why this code doesn't remove all the blank <dalessio@motorola.NOSPAM.com>
Re: copying arrays <ben@morrow.me.uk>
Looking for an integrated mailing-list / web-forum (BB) <arifsaha@yahoo.com>
new CPAN modules on Sat Feb 16 2008 (Randal Schwartz)
TRAC - Trac, Project Leads, Python, and Mr. Noah Kantro <ilias@lazaridis.com>
Re: TRAC - Trac, Project Leads, Python, and Mr. Noah Ka <shortcutter@googlemail.com>
unable to install module GD <rose@russ.org>
Re: Writers Block <glex_no-spam@qwest-spam-no.invalid>
Re: Writers Block <tadmc@seesig.invalid>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 15 Feb 2008 09:54:19 -0600
From: "Mario D'Alessio" <dalessio@motorola.NOSPAM.com>
Subject: Re: Any Idea why this code doesn't remove all the blank lines?
Message-Id: <fp4d2j$38i$1@newshost.mot.com>
Try this:
while(<>)
{
#
# Grab the lines between these two lines (exclusive)
#
my $sequence = /---START---/.../--END\s---/;
next unless $sequence > 1; # Excludes left-hand pattern
next if $sequence =~ /E0$/; # Excludes right-hand pattern
next if /^\s*$/; # Skip blank lines
print;
}
"Jack Wang" <wk1989@gmail.com> wrote in message
news:c1c921a4-b6de-43bf-aff9-213ea7a22442@e10g2000prf.googlegroups.com...
> This is the code I've written so far.
>
> #!/usr/bin/perl
> my $result = "";
> while (<>){
> if (/---START---/../--END\s---/){
> $result.=$_;
> }
> }
> $text="";
> $result=~m/^---START---(.*)--END\s---$/s;
> $text.=$1;
> $text =~ s/\n+/\n/g;
> print $text;
>
> This is the text that it should handle (shortened, ........ represents
> more data).
>
> ---START---
>
> 1342A 1O B10/B11
> 1003 1O B45/Z46
> 1094 1O F39/F40
> 1416 1O G37/G38
> 1007 1O Z33/A34
> .........................
>
> ............................
> ............................
> ....stuff here..........
> ....................
>
> 4105 4L F31/F32
> ......................
> .....................
>
> --END ---
>
>
> I want to extract the data betweeen ---START--- and --END ---,
> removing any blanklines. However, the above mentioned program would
> outputs everything correctly except it leaves a blank line at the top
> and I can't figure out why. Thanks for any help!
------------------------------
Date: Sat, 16 Feb 2008 03:02:44 +0000
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: copying arrays
Message-Id: <kb0i85-6t5.ln1@osiris.mauzo.dyndns.org>
Quoth Paul Lalli <mritty@gmail.com>:
> On Feb 15, 2:15 pm, Joost Diepenmaat <jo...@zeekat.nl> wrote:
> > monkeys paw <u...@example.net> writes:
> > > In the following code the array @drop is modified as well
> > > as @drop2. How can I achieve modifying @drop2 without affecting
> > > @drop?
> >
> > Actually, neither array is modified. You'd modifying the hashes
> > referenced in both arrays. In other words, you want a deep copy of the
> > structure, not just a copy of the references in the array. In this
> > specific case:
> >
> > my @drop2 = map { { %$_ } } @drop;
>
> And in the more general case, when the first "inner" level of the
> structure may also be references, use the Storable module, as
> suggested by `perldoc -q copy`:
Or Clone, which is faster for ordinary data structures like this.
Ben
------------------------------
Date: Fri, 15 Feb 2008 19:43:27 -0500
From: S P Arif Sahari Wibowo <arifsaha@yahoo.com>
Subject: Looking for an integrated mailing-list / web-forum (BB) engine
Message-Id: <alpine.OSX.1.00.0802151104090.277@imac2006.local>
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--0-1806222097-1203093717=:277
Content-Type: TEXT/PLAIN; FORMAT=flowed; CHARSET=ISO-2022-JP
Content-ID: <alpine.OSX.1.00.0802151941481.11964@imac2006.local>
Hi!
I am looking for a perl solution which provide integrated
mailing-list manager and web-forum (discussion / message /
bulletin board). Basically where people can join & participate
both by e-mail and by web access, similar to non-usenet Google
Groups and YahooGroups.
The solution does not need to be a single application, but
should be integrated. Specifically, it should do these:
- Member can participate in the forum fully by e-mail only
(subscribe, confirm, post, and unsubscribe by e-mail).
- Member can participate (post) in the forum by web interface.
- Participation by web interface need authentication (login with
some brute force hacking avoidance, e.g. captcha).
- Posting by e-mail will show up in the web interface and
delivered to all member choose to receive posting by e-mail.
- Posting by web interface will show up in the web interface and
delivered to all member choose to receive posting by e-mail.
- Membership from e-mail wil be the same as membership from web
interface, or at least synchronized.
Any idea?
Thanks!
--
(stephan paul) Arif Sahari Wibowo
_____ _____ _____ _____
/____ /____/ /____/ /____
_____/ / / / _____/ http://www.arifsaha.com/
Xinnian Kuaile! $B?7G/2w\[(J Gongxi Facai $B634nb$:b(J
--0-1806222097-1203093717=:277--
------------------------------
Date: Sat, 16 Feb 2008 05:42:17 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Sat Feb 16 2008
Message-Id: <JwBH6H.FAt@zorch.sf-bay.org>
The following modules have recently been added to or updated in the
Comprehensive Perl Archive Network (CPAN). You can install them using the
instructions in the 'perlmodinstall' page included with your Perl
distribution.
Algorithm-LBFGS-0.15
http://search.cpan.org/~laye/Algorithm-LBFGS-0.15/
Perl extension for L-BFGS
----
Apache-Session-Memorycached-2.2.1
http://search.cpan.org/~egerman/Apache-Session-Memorycached-2.2.1/
An implementation of Apache::Session
----
Bundle-Thread-1.01
http://search.cpan.org/~jdhedden/Bundle-Thread-1.01/
A bundle of modules for supporting threads in Perl
----
Business-TNTPost-NL-0.04
http://search.cpan.org/~blom/Business-TNTPost-NL-0.04/
Calculate Dutch (TNT Post) shipping costs
----
CGI-JSONRPC-0.08
http://search.cpan.org/~crakrjack/CGI-JSONRPC-0.08/
CGI handler for JSONRPC
----
CPU-Emulator-Memory-1.0
http://search.cpan.org/~dcantrell/CPU-Emulator-Memory-1.0/
memory for a CPU emulator
----
Catalyst-Authentication-Store-DBIx-Class-0.104
http://search.cpan.org/~jayk/Catalyst-Authentication-Store-DBIx-Class-0.104/
A storage class for Catalyst Authentication using DBIx::Class
----
Catalyst-Controller-Atompub-0.3.3
http://search.cpan.org/~takeru/Catalyst-Controller-Atompub-0.3.3/
A Catalyst controller for the Atom Publishing Protocol
----
Catalyst-Controller-Resources-0.01
http://search.cpan.org/~masaki/Catalyst-Controller-Resources-0.01/
Catalyst Collection Resources Controller
----
Catalyst-Controller-Resources-0.02
http://search.cpan.org/~masaki/Catalyst-Controller-Resources-0.02/
Catalyst Collection Resources Controller
----
Catalyst-Plugin-Authentication-0.10006
http://search.cpan.org/~jayk/Catalyst-Plugin-Authentication-0.10006/
Infrastructure plugin for the Catalyst authentication framework.
----
Catalyst-Plugin-Log-Dispatch-0.09
http://search.cpan.org/~shot/Catalyst-Plugin-Log-Dispatch-0.09/
Log module of Catalyst that uses Log::Dispatch
----
Class-DBI-Pageset-0.12
http://search.cpan.org/~mgrimes/Class-DBI-Pageset-0.12/
A flexible pager utility for Class::DBI using Data::Pageset
----
Class-MOP-0.53
http://search.cpan.org/~stevan/Class-MOP-0.53/
A Meta Object Protocol for Perl 5
----
Crypt-Elijah-0.11
http://search.cpan.org/~bomb/Crypt-Elijah-0.11/
cipher module
----
Crypt-OpenSSL-CA-0.16
http://search.cpan.org/~domq/Crypt-OpenSSL-CA-0.16/
The crypto parts of an X509v3 Certification Authority
----
Curses-1.21
http://search.cpan.org/~giraffed/Curses-1.21/
terminal screen handling and optimization
----
DBI-Shell-11.95
http://search.cpan.org/~tlowery/DBI-Shell-11.95/
Interactive command shell for the DBI
----
DBIx-EnumConstraints-0.04
http://search.cpan.org/~bosu/DBIx-EnumConstraints-0.04/
generates enum-like SQL constraints.
----
Data-Pageset-Render-0.12
http://search.cpan.org/~mgrimes/Data-Pageset-Render-0.12/
Subclass of Data::Pageset that generates html, text, etc. for page navigation
----
EekBoek-1.03.08
http://search.cpan.org/~jv/EekBoek-1.03.08/
Bookkeeping software for small and medium-size businesses
----
Egg-Plugin-SessionKit-3.00
http://search.cpan.org/~lushe/Egg-Plugin-SessionKit-3.00/
Package kit to use session.
----
Egg-Plugin-SessionKit-3.01
http://search.cpan.org/~lushe/Egg-Plugin-SessionKit-3.01/
Package kit to use session.
----
Egg-Release-DBI-0.02
http://search.cpan.org/~lushe/Egg-Release-DBI-0.02/
Package kit of model DBI.
----
Egg-Release-DBIC-0.02
http://search.cpan.org/~lushe/Egg-Release-DBIC-0.02/
Package kit to use DBIx::Class.
----
Egg-View-TT-3.00
http://search.cpan.org/~lushe/Egg-View-TT-3.00/
View for TemplateToolKit.
----
File-Util-3.23
http://search.cpan.org/~tommy/File-Util-3.23/
Easy, versatile, portable file handling
----
GSSAPI-0.26
http://search.cpan.org/~agrolms/GSSAPI-0.26/
Perl extension providing access to the GSSAPIv2 library
----
HTML-FillInForm-Lite-0.04
http://search.cpan.org/~gfuji/HTML-FillInForm-Lite-0.04/
Fills in HTML forms with data
----
HTTP-Server-Simple-0.29
http://search.cpan.org/~jesse/HTTP-Server-Simple-0.29/
Lightweight HTTP server
----
Hyper-0.03
http://search.cpan.org/~acid/Hyper-0.03/
The global Hyper Workflow Interface
----
Hyper-Developer-0.03
http://search.cpan.org/~acid/Hyper-Developer-0.03/
----
Hyper-Developer-0.04
http://search.cpan.org/~acid/Hyper-Developer-0.04/
----
I18N-Charset-1.386
http://search.cpan.org/~mthurn/I18N-Charset-1.386/
IANA Character Set Registry names and Unicode::MapUTF8 (et al.) conversion scheme names
----
JSON-RPC-0.93
http://search.cpan.org/~makamaka/JSON-RPC-0.93/
Perl implementation of JSON-RPC 1.1 protocol
----
JSON-RPC-0.94
http://search.cpan.org/~makamaka/JSON-RPC-0.94/
Perl implementation of JSON-RPC 1.1 protocol
----
JSON-RPC-0.95
http://search.cpan.org/~makamaka/JSON-RPC-0.95/
Perl implementation of JSON-RPC 1.1 protocol
----
Language-MPI-2008.0215
http://search.cpan.org/~hanelyp/Language-MPI-2008.0215/
2008.0215 Message Parsing Interpreter
----
Language-MuldisD-0.21.0
http://search.cpan.org/~duncand/Language-MuldisD-0.21.0/
Formal spec of Muldis D relational DBMS lang
----
Lingua-Stem-Es-0.01
http://search.cpan.org/~jfraire/Lingua-Stem-Es-0.01/
Perl Spanish Stemming
----
List-Rotation-Cycle-1.008
http://search.cpan.org/~pelagic/List-Rotation-Cycle-1.008/
Cycle through a list of values via a singleton object implemented as closure.
----
Log-Handler-0.38_11
http://search.cpan.org/~bloonix/Log-Handler-0.38_11/
Log messages to one or more outputs.
----
Log-Handler-0.38_12
http://search.cpan.org/~bloonix/Log-Handler-0.38_12/
Log messages to one or more outputs.
----
Math-Prime-XS-0.18
http://search.cpan.org/~schubiger/Math-Prime-XS-0.18/
Calculate/detect prime numbers with deterministic tests
----
Moose-0.37
http://search.cpan.org/~stevan/Moose-0.37/
A postmodern object system for Perl 5
----
Moose-0.38
http://search.cpan.org/~stevan/Moose-0.38/
A postmodern object system for Perl 5
----
Net-Amazon-EC2-0.06
http://search.cpan.org/~jkim/Net-Amazon-EC2-0.06/
Perl interface to the Amazon Elastic Compute Cloud (EC2) environment.
----
Net-DNS-ZoneFile-Fast-0.91
http://search.cpan.org/~hardaker/Net-DNS-ZoneFile-Fast-0.91/
parse BIND8/9 zone files
----
Net-DomainTools-API-0.08
http://search.cpan.org/~dbartle/Net-DomainTools-API-0.08/
Base class for the Domain Tools API
----
Net-Jabber-Bot-2.0.8
http://search.cpan.org/~toddr/Net-Jabber-Bot-2.0.8/
Automated Bot creation with safeties
----
Number-DataRate-0.31
http://search.cpan.org/~lbrocard/Number-DataRate-0.31/
Convert data rate to bits or bytes per second
----
Object-InsideOut-3.36
http://search.cpan.org/~jdhedden/Object-InsideOut-3.36/
Comprehensive inside-out object support module
----
POEIKC-0.00_01
http://search.cpan.org/~suzuki/POEIKC-0.00_01/
POE IKC daemon and client
----
Panotools-Script-0.13
http://search.cpan.org/~bpostle/Panotools-Script-0.13/
Panorama Tools scripting
----
Path-Classy-0.001_0
http://search.cpan.org/~ferreira/Path-Classy-0.001_0/
Augmented Path::Class (fancy stuff)
----
PowerDNS-Backend-MySQL-0.03
http://search.cpan.org/~augie/PowerDNS-Backend-MySQL-0.03/
Provides an interface to manipulate PowerDNS data in the MySQL Backend.
----
Rose-DB-0.740
http://search.cpan.org/~jsiracusa/Rose-DB-0.740/
A DBI wrapper and abstraction layer.
----
Rose-DB-Object-0.767
http://search.cpan.org/~jsiracusa/Rose-DB-Object-0.767/
Extensible, high performance object-relational mapper (ORM).
----
SMS-Send-NL-MyVodafone-0.04
http://search.cpan.org/~blom/SMS-Send-NL-MyVodafone-0.04/
An SMS::Send driver for the my.vodafone.nl website
----
SNMP-Trapinfo-1.01
http://search.cpan.org/~tonvoon/SNMP-Trapinfo-1.01/
Read and process an SNMP trap from Net-SNMP's snmptrapd
----
Shipwright-1.0
http://search.cpan.org/~jesse/Shipwright-1.0/
Best Practical Builder
----
Shipwright-1.01
http://search.cpan.org/~jesse/Shipwright-1.01/
Best Practical Builder
----
Sub-Uplevel-0.1901
http://search.cpan.org/~dagolden/Sub-Uplevel-0.1901/
apparently run a function in a higher stack frame
----
Template-Declare-0.28
http://search.cpan.org/~sartak/Template-Declare-0.28/
Perlish declarative templates
----
Text-Wrap-Smart-XS-0.03
http://search.cpan.org/~schubiger/Text-Wrap-Smart-XS-0.03/
Wrap text fast into chunks of (mostly) equal length
----
Thread-Queue-2.01
http://search.cpan.org/~jdhedden/Thread-Queue-2.01/
Thread-safe queues
----
Thread-Queue-2.02
http://search.cpan.org/~jdhedden/Thread-Queue-2.02/
Thread-safe queues
----
Thread-Queue-2.03
http://search.cpan.org/~jdhedden/Thread-Queue-2.03/
Thread-safe queues
----
Thread-Semaphore-2.03
http://search.cpan.org/~jdhedden/Thread-Semaphore-2.03/
Thread-safe semaphores
----
Thread-Semaphore-2.04
http://search.cpan.org/~jdhedden/Thread-Semaphore-2.04/
Thread-safe semaphores
----
WWW-eiNetwork-0.01
http://search.cpan.org/~aquilina/WWW-eiNetwork-0.01/
Perl interface to Allegheny County, PA libraries
----
WikiText-0.08
http://search.cpan.org/~ingy/WikiText-0.08/
Wiki Text Conversion Tools
----
WikiText-Socialtext-0.09
http://search.cpan.org/~ingy/WikiText-Socialtext-0.09/
Socialtext WikiText Module
----
Win32-EnvProcess-0.02
http://search.cpan.org/~clive/Win32-EnvProcess-0.02/
Perl extension to set or get environment variables from other processes
----
Youri-Package-RPM-Builder-0.1.2
http://search.cpan.org/~grousse/Youri-Package-RPM-Builder-0.1.2/
Build RPM packages
----
Youri-Package-RPM-Updater-0.4.1
http://search.cpan.org/~grousse/Youri-Package-RPM-Updater-0.4.1/
Update RPM packages
If you're an author of one of these modules, please submit a detailed
announcement to comp.lang.perl.announce, and we'll pass it along.
This message was generated by a Perl program described in my Linux
Magazine column, which can be found on-line (along with more than
200 other freely available past column articles) at
http://www.stonehenge.com/merlyn/LinuxMag/col82.html
print "Just another Perl hacker," # the original
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
------------------------------
Date: Sat, 16 Feb 2008 04:16:11 -0800 (PST)
From: Ilias Lazaridis <ilias@lazaridis.com>
Subject: TRAC - Trac, Project Leads, Python, and Mr. Noah Kantrowitz (sanitizer)
Message-Id: <3d40196b-b1c8-4e18-92f0-7ce5a5a38853@u72g2000hsf.googlegroups.com>
Essence:
* Trac is deficient, cause of "proud to be an egoism driven amateur"
developers
* Python and it's communities is excellent for learning. Not
programming, but to "learn from deficiency", community organization,
transparency, efficiency etc.!
* Do it in perl, if you need something more 'pretty', do it in ruby,
if you need something more 'serious' do it in java, if you have enough
brain and time, do it in C++ from bottom up.
-
I don't think that's a secret anymore. Anyone should know that the
trac team has huge problems to bring trac forward. People who have
looked at the code-base and project understand some reason: difficult
to maintain 'spaghetti-code' in many places, disorganized project,
missing separations of concerns etc.! I've provided an overview some
time ago
http://case.lazaridis.com/wiki/TracAudit
At this time the developers are searching like crazy to find a mem-
leak... since months.
http://trac.edgewall.org/ticket/6614
But the main problem with the trac team is the processing within
project resources. Believe it or not, developers can act within this
project as they like, 'trimming' ticket comments in a way that a
ticket gets a totally other meaning.
The main specialist for this is Mr. Noah Kantrowitz. He calls it
"sanitizing". The team hides behind him, cowardly, without any public
vote.
How did everything start?
I post a simple message to trac-users (note: the user resource, NOT
the developer resource), in order to extend my custom version of trac
0.11 a little. The message did not appear, as my email is under
moderation. I do not switch to another email, as I write always with
the same identity.
So i file a ticket within the ticket system (here you can see the
"After a quick vote, it has been decided to sanitize this ticket. "...
I start to like this "sanitize" term, sounds really interesting)
http://trac.edgewall.org/ticket/6802
Mr. Noah Kantrowitz deleted the discussion, but I've saved it here,
thus you can see that the developers of trac have no idea about their
own processes:
http://case.lazaridis.com/ticket/48
After the developers placed the usual irrelevant comments (remember: I
just asked them to stop blocking my messages to trac users), they
"brute force closed" the ticket.
I've opened a new one, directly adressed to the project lead, in order
to complain about the developers which violate the project processes,
and to ask for a formal vote:
http://trac.edgewall.org/ticket/6844
Right! Mr. Noah Kantrowitz plays again "wild west". I relly don't know
who of those two is more funny: the one who plays the dictator, or the
other joker who suggests to revers the process (I should find
developers to veto against the censorship and send the to the team).
Remember: we are talking about the trac-user group.
I really cannot believe that a whole team can be in such way confused,
nuts, blind, egoism-driven etc.! Possibly they have lost the password
to the trac-user group, and are not able to manage it - who knows. I
would not wonder, seeing thos terrible processes and the rejection to
improve them.
(btw: If you like to act against censorship, please post this message
to trac-users, thus the get informed about the teams processing)
And we are talking about censorship of a trac 0.11dev custom-version-
developer. A custom version with localization support, plugin-bundles
(product-plugin) which run out of the svn, an fully functional but
simple side-navigation, and... everything deactivatable with a very
simple way, thus the original trac is there again.
http://dev.lazaridis.com/base
Open Source works like this: many many small human ego's need to be
fitted. There's no place for developers which could redesign the whole
thing within a few months. the trac-developers need to 'fight' with
tons of spaghetti. The developers plan like crazy, instead to merge
with a application framework like e.g. turbogears. Did you know that
trac has no support for... datetime fields? Yes, its true.
You may say: do it yourself. Of course I could do it, even without
touching the main sources (using dyna-patches or monkeypatches). But
that's not how open-source works. You implement thing for yourself and
contribute things back to the core-project - but with trac there's one
problem: no one get's the core anymore (apparently the initial
developer has left)
Of course I'll not stay with trac, I'll leave the sinking ship, I've
prepare long time ago to do so, step by step. An will migrate step by
step away from trac and python - toward an own implementation based
on...
perl and it's libraries.
Really, I don't understand the need for python. And after fighting
with some indenting within html templates, I dislike the whitespace-
syntax-thing of python again.
Do it in perl, if you need something more 'pretty', do it in ruby, if
you need something more 'serious' do it in java, if you have enough
brain and time, do it in C++ from bottom up.
Python and it's communities is excellent for learning. Not
programming, but to "learn from deficiency", community organization,
transparency, efficiency etc.!
-
So, keep your eyes on this project, if you want to be prepared to jump-
off the sinking ship "trac"
http://dev.lazaridis.com/base/
-
Party Time!
.
------------------------------
Date: Sat, 16 Feb 2008 14:45:43 +0100
From: Robert Klemme <shortcutter@googlemail.com>
Subject: Re: TRAC - Trac, Project Leads, Python, and Mr. Noah Kantrowitz (sanitizer)
Message-Id: <61o7o8F1ve5o6U3@mid.individual.net>
On 16.02.2008 13:16, Ilias Lazaridis wrote:
<snip/>
Oh, it's him again. Please do not respond.
http://dev.eclipse.org/newslists/news.eclipse.foundation/msg00167.html
http://www.encyclopediadramatica.com/index.php/Ilias
Cheers
robert
------------------------------
Date: Sat, 16 Feb 2008 20:11:41 +0800
From: "Rose" <rose@russ.org>
Subject: unable to install module GD
Message-Id: <fp6ju0$hhb$1@ijustice.itsc.cuhk.edu.hk>
Why does the following error occur?
cpan[10]> install GD
<snippet>
--------------------------
GD.c:4353: `font' undeclared (first use in this function)
GD.c:4353: called object is not a function
GD.c: In function `XS_GD__Font_height':
GD.c:4374: syntax error before "font"
GD.c:4380: `font' undeclared (first use in this function)
GD.c:4380: called object is not a function
{standard input}: Assembler messages:
{standard input}:486: Error: symbol `__u' is already defined
{standard input}:492: Error: symbol `__u' is already defined
{standard input}:498: Error: symbol `__u' is already defined
{standard input}:504: Error: symbol `__u' is already defined
{standard input}:510: Error: symbol `__u' is already defined
{standard input}:516: Error: symbol `__u' is already defined
{standard input}:522: Error: symbol `__u' is already defined
{standard input}:528: Error: symbol `__u' is already defined
{standard input}:534: Error: symbol `__u' is already defined
{standard input}:540: Error: symbol `__u' is already defined
{standard input}:546: Error: symbol `__u' is already defined
make: *** [GD.o] Error 1
LDS/GD-2.35.tar.gz
/usr/bin/make -- NOT OK
Warning (usually harmless): 'YAML' not installed, will not store persistent
state
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
LDS/GD-2.35.tar.gz : make NO
--------------------------
cpan[11]>
cpan[11]> install GD
Running install for module 'GD'
Running make for L/LD/LDS/GD-2.35.tar.gz
Has already been unwrapped into directory /root/.cpan/build/GD-2.35-05IfiM
Could not make: Unknown error
Warning (usually harmless): 'YAML' not installed, will not store persistent
state
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
------------------------------
Date: Fri, 15 Feb 2008 17:14:34 -0600
From: "J. Gleixner" <glex_no-spam@qwest-spam-no.invalid>
Subject: Re: Writers Block
Message-Id: <47b61cdb$0$505$815e3792@news.qwest.net>
dale wrote:
[...]
> The problem is that I want the user to be prompted to enter a
> different UID if the UID already exists in %hashUID (which is just a
> copy of username and uid values from /etc/passwd). I am having
> problem with this error checking portion.
>
> Overall, what I would like this script to do is allow a user to create
> users on a Linux server in batch from a CSV file (to save me time).
There are better ways to push accounts around.
> Obviously, a UID that is already in use cannot be used by a newly
> created user. [...]
> if ( ($uidInput <= 500 || $uidInput >= 5000 ) ||exists
$hashUID{uidInput} ) {
Missing a '$' there..
if ( ($uidInput <= 500 || $uidInput >= 5000 ) ||exists
$hashUID{$uidInput} ) {
However, why do you care about the UID? Just let adduser, or
whatever you're going to use to actually add the account, create it.
A unique username is what you should care about, possibly they
could select their group, but the UID isn't something you generally
care about.
There are plenty of adduser types of scripts available. Search
the Internet and you'll find many solutions.
------------------------------
Date: Sat, 16 Feb 2008 06:07:14 GMT
From: Tad J McClellan <tadmc@seesig.invalid>
Subject: Re: Writers Block
Message-Id: <slrnfrc5hp.rbv.tadmc@tadmc30.sbcglobal.net>
Joost Diepenmaat <joost@zeekat.nl> wrote:
> perl is buffering your
> script's output and you should switch off output buffering. Put
>
> $|=1;
That is not switching off output buffering, that is switching on autoflush.
IO is still buffered, it just gets flushed more often than when
autoflush is left off.
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
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.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
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.
#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 V11 Issue 1282
***************************************