RE: Why glob() ?

2005-11-12 Thread Charles K. Clarkson
Gustav Wiberg wrote: : ps. I don't have the manual or Perl installed on this computer... http://perldoc.perl.org/ HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 . . . With Liberty and Justice for all (heterosexuals). -- To unsubscribe, e-mail

Re: Why glob() ?

2005-11-12 Thread Gustav Wiberg
- Original Message - From: "Randal L. Schwartz" To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: Sent: Sunday, November 13, 2005 12:10 AM Subject: Re: Why glob() ? "Gustav" == Gustav Wiberg <[EMAIL PROTECTED]> writes: Gustav> Hi there! Gustav> Thanx! Gustav> That's all I needed to kn

Re: Why glob() ?

2005-11-12 Thread Randal L. Schwartz
> "Gustav" == Gustav Wiberg <[EMAIL PROTECTED]> writes: Gustav> Hi there! Gustav> Thanx! Gustav> That's all I needed to know! :-) Gustav> /G Gustav> ps. I don't have the manual or Perl installed on this computer... Then why are you asking about Perl? How do you expect to use it? Psychic po

Re: Why glob() ?

2005-11-12 Thread Gustav Wiberg
Hi there! Thanx! That's all I needed to know! :-) /G ps. I don't have the manual or Perl installed on this computer... - Original Message - From: "Randal L. Schwartz" To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: Sent: Saturday, November 12, 2005 11:47 PM Subject: Re: Why glob() ?

Re: Why glob() ?

2005-11-12 Thread Randy W. Sims
Gustav Wiberg wrote: This seems totally meaningless, but what would $list = glob('*.txt') return? Try it. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Why glob() ?

2005-11-12 Thread Randal L. Schwartz
> "Gustav" == Gustav Wiberg <[EMAIL PROTECTED]> writes: Gustav> This seems totally meaningless, but what would $list = glob('*.txt') return? Now is the time I will start to quote the manpage at you: $ perldoc -tf glob glob EXPR globIn list context, returns a (possibly empty) lis

Re: Shortest One-liner to Rename Files

2005-11-12 Thread Randy W. Sims
Wijaya Edward wrote: Hi all, I have a snippet that rename files from: "sth.txt.out" into "sth.out" Now I am really curious how can I make this oneliner "even shorter": $ perl -e ' for(glob ("*.txt.out")){ $out = $_; $out =~ s/\.txt(\.out)/\.out/; rename ($_,$out); }' perl -e '/(.*)\.tx

Re: Why glob() ?

2005-11-12 Thread Gustav Wiberg
Hi again! Thanx! :-) I'm trying to ask as much as possible just to be on the clear with it... :-) This seems totally meaningless, but what would $list = glob('*.txt') return? /G http://www.varupiraten.se/ - Original Message - From: "Randal L. Schwartz" To: "Gustav Wiberg" <[EMAIL P

Re: Why glob() ?

2005-11-12 Thread Randal L. Schwartz
> "Gustav" == Gustav Wiberg <[EMAIL PROTECTED]> writes: Gustav> Hi again! Gustav> If I understood it right... Gustav> @list = glob('*.txt'); Gustav> would return all files that ends with *.txt in current directory? Yes. What part of "perldoc -f glob" would lead you to a possibly different

Re: Why glob() ?

2005-11-12 Thread Gustav Wiberg
Hi again! If I understood it right... @list = glob('*.txt'); would return all files that ends with *.txt in current directory? /G http://www.varupiraten.se/ - Original Message - From: "Randal L. Schwartz" To: ; "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Saturday, November 12, 2005

Re: Why glob() ?

2005-11-12 Thread Gustav Wiberg
Hi there! Thanx!!! :-) /G - Original Message - From: "Randal L. Schwartz" To: ; "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Saturday, November 12, 2005 11:10 PM Subject: Re: Why glob() ? "Gustav" == Gustav Wiberg <[EMAIL PROTECTED]> writes: Gustav> Why to use glob()-command when I

Re: Why glob() ?

2005-11-12 Thread Randal L. Schwartz
> "Gustav" == Gustav Wiberg <[EMAIL PROTECTED]> writes: Gustav> Why to use glob()-command when I can use exec() ??? I don't get it... In modern Perl, glob() is internal, where exec/system/backquote/pipes are external, so it's very likely faster to use glob, perhaps ten or one hundred times fa

Why glob() ?

2005-11-12 Thread Gustav Wiberg
Hi there! Why to use glob()-command when I can use exec() ??? I don't get it... /G http://www.varupiraten.se/

Globbing?

2005-11-12 Thread Gustav Wiberg
Hi there! A question about globbing... What actually happens in the Operatingsystem when a globbing is done? is ls *.txt the same as: ls hello1.txt ls hello2.txt ls hello3.txt (If these file are in the same directory that ls is typed) I know I can use exec() but I want to know what actually h

Re:

2005-11-12 Thread JupiterHost.Net
Riano alejo wrote: Anybody know a good emaillist for PHP BEGINERS??? Sure: [EMAIL PROTECTED] Seriously though, if you're a beginner, learn *any* language but PHP and anything Microsoft specific. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT