Hello fellow Perl hackers,
I sent the following question directly to Active State and got a response
that led me to subscribe to this mailing list. I have not found any
references to this problem in the archives but there must be other
Windows 2000 users out there who have encountered the same pr
> >>By the way, what does the m#. do in the statement: if (m#.+\\ulog#i)?
>
> u can use any char as the match/subst delimiter as long as you keep em the
> same
>
> eg..
>
> m/.../.../;
> m/?...?...?; [t0by] whoops. that should be: m?...?...?;
> m#...#...#;
> s-...-...-;
> s!...
>>By the way, what does the m#. do in the statement: if (m#.+\\ulog#i)?
u can use any char as the match/subst delimiter as long as you keep em the
same
eg..
m/.../.../;
m/?...?...?;
m#...#...#;
s-...-...-;
s!...!...!;
> -Original Message-
> From: Steven&Alison Chu
Hi Jeff,
Thanks for the pointer. You gave me an idea which worked. I noticed the
extra "\" on your code and I mucked around with my code and the code below
worked as well!
(-f $_ && $_=~/\\ULOG\./i)
Now we have 2 pieces of code that works!
By the way, what does the m#. do in the statement: if
# test input
@names = ("C:\\ba\\log\\ULOG.20010101",
"C:\\ba\\log\\ULG.20010101",
"C:\\ba\\log\\ULGO.20010101",
"C:\\ba\\log\\ulog.20010101");
foreach (@names)
{
if (m#.+\\ulog#i)
{
print "Yep\t$_\n";
}
else
{
Steven&Alison Chua wrote:
>
> Thanks Tom and James for your help.
>
> Sorry I forgot to mention that the filename has the
filename "path" in it.
> Hence the caret "^" wouldn;t work.
> Eg of filename:"C:\ba\log\ULOG.20010101"
>
> I did have a look at the perlre manpage. Tried the
options but I
Thanks Tom and James for your help.
Sorry I forgot to mention that the filename has the filename "path" in it.
Hence the caret "^" wouldn;t work.
Eg of filename:"C:\ba\log\ULOG.20010101"
I did have a look at the perlre manpage. Tried the options but I could'nt
get it to work.
Do you or anyone
Brilliant!
Many Thanks
CCJ
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Clinton" <[EMAIL PROTECTED]>
Sent: Thursday, September 27, 2001 8:43 PM
Subject: Re: Font::TTF for 5.6 not in repository?
>
> The file you cite is pretty old.
>
> I'd suggest you get Font::TTF from CPAN. Curre
Hi,
I am running v5.6.1 under win2k. I have been having
problem getting the correct child pid.
The child $pid is always a negative number for some
reason. $pid gives the same negative
as $$ in the child process code but that is not the
real child pid.
$$ in parent code did
Sorry allhahahahaha
I subscirbe to serveral mailing liststhis one
was intended for another groupbut nonetheless, your help is
appreciated.
- Original Message -
From:
Harry Holt
To: Russel
Olinger ; activeperl
Sent: Thursday, September 27, 2
Title: Message
I suggest a company
called www.enom.com. Very slick and
cheap, and they give you a web interface with all sorts of options for making
different entries. They're what I use for my personal domain name (for my
home LAN).
-Original Message-From: Russel O
Title: RE: GD on winNT
Thanks Jeremy - I installed the Chart:: package - and it seems to work great. Thanks for saving me a lot of headaches.
-Original Message-
From: Jeremy Wadsack [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 6:30 PM
To: Vincent, Jason
> From: Steven&Alison Chua [mailto:[EMAIL PROTECTED]] asked:
> I'm having some difficulty matching files starting with a name.
[...]
> I've tried using the following line but it is not accurate as
> it retuens
> files with ULOG at the end of the filename as well:
>
> (-f $_ && $_=~/\ULOG
u need to use the ^ (caret) in your regex, to say "starts with".
$_ =~ /^ULOG/i;
HTH
jim
-Original Message-
From: beebzz
Sent: 27 September 2001 09:31
To: activeperl
Cc: beebzz
Subject: FileName Pattern Matching
Hello everyone,
I'm having some difficulty matching
Hello everyone,
I'm having some difficulty matching files starting with a name.
For example, I'm trying to match filenames that STARTS with "ULOG."
I'm not bothered about the extension name as it varies.
Any ideas?
I've tried using the following line but it is not accurate as it retuens
files
Anyone know of a any easy and "cheap" place to
register domains at? I loathe networksolutions, especially since they are
now owned by Verisign. Bastards.
16 matches
Mail list logo