On 4/28/07, Somu <[EMAIL PROTECTED]> wrote:
Thank you all.. Now i'm able to open files from other drives and
directories.. The EXPR in glob EXPR is actually a kind of regexp then?
What is this new q{} operator?
I am sorry for the previous dubious emails, they actually were errors
made by the mail sender.
No, it's not a regex. It's just an expression. EXPR is just short for
"expression". In the documentation it translates roughly to "the type
of input this operator or function accepts." You then need to read the
rest of the doc see what kind of input a particular operator or
function accepts. the type of expression that satisfies "glob EXPR" is
very different from one that would satisfy "unless EXPR," for
instance. In glob's case, the expression is a combination of literal
characters and wildcards that mimic the wildcard syntax of unix
shell(s) (actually BSD glob). It's a glob expression, and it's very
different from from a perl regex (or any other regex).
You can read all about q//, qq//, qw//, and their friends in perlop
under "Quote and Quote-like Operators." Better yet, just pick up a
copy of _Learning Perl_ or _Learning Perl for Win32_ from your local
bookstore. The q*// operators are common ways of quoting text, and
you'll want to get familiat with them.
HTH,
-- j
--------------------------------------------------
This email and attachment(s): [ ] blogable; [ x ] ask first; [ ]
private and confidential
daggerquill [at] gmail [dot] com
http://www.tuaw.com http://www.downloadsquad.com http://www.engatiki.org
values of β will give rise to dom!