comp.lang.perl.misc
  Home FAQ Contact Sign in
comp.lang.perl.misc only
 
Advanced search
April 2008
motuwethfrsasuw
 123456 14
78910111213 15
14151617181920 16
21222324252627 17
282930     18
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.perl.misc Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Re: script to find the files with very long names         


Author: Ed Morton
Date: Apr 25, 2008 23:00

On 6/12/2006 2:34 AM, pui ming Wong wrote:
> My objective is to go down the current directory
> and have the system tells me which files have their names
> longer than say 26 characters
>
> i think mixing the unix find command
> with some other commands might do it.
> But a perl script might do it more tidily and faster ?

find . -name "??????????????????????????*"

That's 26 question marks, or if you prefer to specify a value:

find . -name "$(printf "%%26s*"|tr ' ' '?')"

Regards,

Ed.
8 Comments
  $$$ on line hero $$$         


Author: rn.run1
Date: Apr 25, 2008 22:57

you see beauty you like it this web clike here

www.mobilegalaxy.net.tc
no comments
  FAQ 2.11 Perl Books         


Author: PerlFAQ Server
Date: Apr 25, 2008 18:03

This is an excerpt from the latest version perlfaq2.pod, which
comes with the standard Perl distribution. These postings aim to
reduce the number of repeated questions as well as allow the community
to review and update the answers. The latest version of the complete
perlfaq is at http://faq.perl.org .

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

2.11: Perl Books

A number of books on Perl and/or CGI programming are available. A few of
these are good, some are OK, but many aren't worth your money. There is
a list of these books, some with extensive reviews, at
http://books.perl.org/ . If you don't see your book listed here, you can
write to perlfaq-workers@perl.org .

The incontestably definitive reference book on Perl, written by the
creator of Perl, is Programming Perl:

Programming Perl (the "Camel Book"):
by Larry Wall, Tom Christiansen, and Jon Orwant
ISBN 0-596-00027-8 [3rd edition July 2000]
http://www.oreilly.com/catalog/pperl3/
(English, translations to several languages are also available)
Show full article (8.04Kb)
6 Comments
  ANN: Dao 1.0 preview version is released         


Author: Limin Fu
Date: Apr 25, 2008 15:09

Hi,

I am please to announce a preview release of Dao (1.0). Dao is a
simple yet powerful object-oriented programming language featured by,
optional typing, BNF-like macro system, regular expression,
multidimensional numeric array, asynchronous function call for
concurrent programming etc.

Since the last beta release (2006 november), a number of new features
have been added to the language with some significant improvements on
the implementation. Here I will just list some of them:

1. Added a new typing system, so that the type of an variable can be
either declared explicitly or inferred implicitly, and type checking
is performed at compiling time when possible. More over the type
information is used for function overloading and function
specialization (with type-optimized VM instructions) according to
paramter types. Some types can be compounded into new types, e.g.,
list, tuple>...

2. A flexible macro-system that allows writting macro in a form close
to BNF, and can be used to define new syntax;
Show full article (3.39Kb)
no comments
  FAQ 2.10 Where should I post source code?         


Author: PerlFAQ Server
Date: Apr 25, 2008 12:03

This is an excerpt from the latest version perlfaq2.pod, which
comes with the standard Perl distribution. These postings aim to
reduce the number of repeated questions as well as allow the community
to review and update the answers. The latest version of the complete
perlfaq is at http://faq.perl.org .

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

2.10: Where should I post source code?

You should post source code to whichever group is most appropriate, but
feel free to cross-post to comp.lang.perl.misc. If you want to
cross-post to alt.sources, please make sure it follows their posting
standards, including setting the Followup-To header line to NOT include
alt.sources; see their FAQ ( http://www.faqs.org/faqs/alt-sources-intro/
) for details.

If you're just looking for software, first use Google (
http://www.google.com ), Google's usenet search interface (
http://groups.google.com ), and CPAN Search ( http://search.cpan.org ).
This is faster and more productive than just posting a request.

--------------------------------------------------------------------
Show full article (1.67Kb)
no comments
  printing a file to a print server prettily         


Author: ccc31807
Date: Apr 25, 2008 11:11

I generate a series of paper files every morning, anywhere from a few
dozen to a couple of thousand. I have copied the function that I use
below. This function takes a file name, which is an ASCII file with a
name like 'john_doe.txt' with a number of fields (name, address,
previous college, enrollment date, etc., maybe 30 in all) and the
resulting output is distriubted to personnel for further processing
and filing (in a physical file folder -- which is one reason why we
need to actually print the file).

We have an employee who has been used to getting output from an Access
database. The field names are printed in italic, the values are
printed in san-serif, and the values have nice little boxes drawn
around them. She has convinced everyone that they all need pretty
output rather than a plain ASCII output.

So ... I'm sitting here wondering how I can convince the printer to
print some part in italics, some part in sans-serif, and draw pretty
boxes. Any ideas?

Thanks, CC.
Show full article (1.26Kb)
3 Comments
  FAQ 2.9 What are the Perl newsgroups on Usenet? Where do I post questions?         


Author: PerlFAQ Server
Date: Apr 25, 2008 06:03

This is an excerpt from the latest version perlfaq2.pod, which
comes with the standard Perl distribution. These postings aim to
reduce the number of repeated questions as well as allow the community
to review and update the answers. The latest version of the complete
perlfaq is at http://faq.perl.org .

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

2.9: What are the Perl newsgroups on Usenet? Where do I post questions?

Several groups devoted to the Perl language are on Usenet:

comp.lang.perl.announce Moderated announcement group
comp.lang.perl.misc High traffic general Perl discussion
comp.lang.perl.moderated Moderated discussion group
comp.lang.perl.modules Use and development of Perl modules
comp.lang.perl.tk Using Tk (and X) from Perl

comp.infosystems.www.authoring.cgi Writing CGI scripts for the Web.
Show full article (2.73Kb)
1 Comment
  FAQ 2.8 Where can I get information on Perl?         


Author: PerlFAQ Server
Date: Apr 25, 2008 00:03

This is an excerpt from the latest version perlfaq2.pod, which
comes with the standard Perl distribution. These postings aim to
reduce the number of repeated questions as well as allow the community
to review and update the answers. The latest version of the complete
perlfaq is at http://faq.perl.org .

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

2.8: Where can I get information on Perl?

The complete Perl documentation is available with the Perl distribution.
If you have Perl installed locally, you probably have the documentation
installed as well: type "man perl" if you're on a system resembling
Unix. This will lead you to other important man pages, including how to
set your $MANPATH. If you're not on a Unix system, access to the
documentation will be different; for example, documentation might only
be in HTML format. All proper perl installations have fully-accessible
documentation.

You might also try "perldoc perl" in case your system doesn't have a
proper man command, or it's been misinstalled. If that doesn't work, try
looking in /usr/local/lib/perl5/pod for documentation.
Show full article (2.55Kb)
no comments