Hey Philip,
I also have an environ.pl file that I use, but it is smaller and I
think (?) uses less resources. Can anyone confirm that it is faster
and uses less resources to no use CGI for little things?
#!/usr/local/bin/perl
print "Content-type: text/html\n\n
CGI Environment
CGI Environm
Hey Aaron,
Friday, June 08, 2001, 12:51:05 PM, you wrote:
AC> I've got to take issue with this. I use Eudora, which for just about
AC> everything else is a nice program. Though it's not 100% free of problems
AC> and bugs -- it does not have any options for handling lists -- I don't
AC> thin
Hey Chas,
Thursday, June 07, 2001, 7:44:11 PM, you wrote:
CO> On 07 Jun 2001 19:36:57 -0400, Mark S wrote:
>> You could just set up a web server on your own machine, if that's all you're
>> looking to do.
>>
>>
>> who knows of some free web space that allows the use of perl? so i can test
>> m
Hey ggage,
Friday, June 08, 2001, 12:17:50 PM, you wrote:
gmc> I would like to run a perl script and pass in an argument (ARGV[0]) by
gmc> dragging a textfile icon on to the perl script icon. This would be on an
gmc> NT/Win2000 system using the icons in file manager, desktop, etc. The
gmc> arg
Hey all,
I was wondering why the perl install has both the
./perl/lib and ./perl/site/lib folders? They both seem to have the
same type of things (modules, etc...). Why are there both, and why
would you choose to put a module you were writing in one or the
other?
--
[EMAIL PROTECTED]
Using Th
Perl People,
I am the only one at my current contract that knows Perl (and I
can't for the life of me figure out why the others don't learn it
instead of asking me each time it is needed... ). This time, I
thought I would ask the list...
The network drives (P: for personal data, etc)
Thanks Jindra,
Monday, June 11, 2001, 10:06:13 AM, you wrote:
JV> Workaround is to use pl2bat script which encapsulates the perl
JV> source within a .bat file and handles everything as necessary.
JV> It is the way already suggested here, I just wanted to point out
JV> the PL2BAT script, which i
Hey Evgeny,
Monday, June 11, 2001, 4:11:54 PM, you wrote:
>> I download a
>> module from activestate but when I try to install it I get the following
>> error.
>>
G:\Perl\bin>>>ppm install win32-gui.ppd
EGaG> Why not to visit the CPAN, take the tar.gz distribution, open it and run
EGaG> perl m
Hey Perlers,
I have pulled some books from Project Gutenberg (www.Gutenberg.net).
What I want to do is take all the Paragraphs and put them on one
line, then put them into the Palm DOC format. This way they wrap
correctly on the Palm screen.
There is no indenting that I care about, so
Hey Crystal,
Friday, June 15, 2001, 2:23:41 PM, you wrote:
CG> Once upon a time I could use MS-Dos to run my Perl scripts at the C:\Perl
CG> prompt. Then use Perl nameofscript.pl or whatever the name was. That isn't
CG> working anymore. Anyone have any idea why? What can I do to fix it. I've
CG>
Hey Evgeny,
Wednesday, June 13, 2001, 7:13:14 PM, you wrote:
EGaG> Hi,
EGaG> As I saw some of you are using "TheBat!" mail client, me too.
EGaG> I'd like to be able to read it's messages from the script - for that
EGaG> I have to know the binary format of "Messages.tbb" files where it keep
Hey all,
I have been using
#!/perl -w
and based on some posts have started using
use Strict;
use Diagnostics;
as I develop code (all helpful things to do).
My question is when I put the code into production, should I leave any
of these turned on? I am thinking that they are to help with
devel
Hey Mark,
Friday, June 15, 2001, 2:48:14 PM, you wrote:
MF> Is Perl in your system path? The first line in the script doesn't help
MF> any in DOSneyland. I usually just type "perl script.pl" if it is. It is
MF> possible to associated the dot-p-l extension with Perl.exe in the
MF> Windows GUI, bu
Hey REIGNCandE,
Friday, June 15, 2001, 2:39:03 PM, you wrote:
Rac> Whenever I try to open my script from the command line (the
Rac> infamous "Hello, World" script), I can see hello world! on my
Rac> screen for 1 second and then my Perl inturpreter suddenly
Rac> disappears off of my screen;
Soun
Hey Brett,
Friday, June 15, 2001, 4:28:05 PM, you wrote:
BWM> Using "my" puts the variable into a lexical scope and keeps it
BWM> out of the global name space.
What does lexical mean here? I looked it up in a dictionary, but still
am not sure how it applies.
--
[EMAIL PROTECTED]
Using The Ba
Hey Paul,
Friday, June 15, 2001, 6:50:02 PM, you wrote:
PJ> On Fri, Jun 15, 2001 at 06:07:38PM -0400, Tim Musson wrote:
>> Hey Brett,
>>
>> Friday, June 15, 2001, 4:28:05 PM, you wrote:
>>
>> BWM> Using "my" puts the variable into a lexical sco
line seperator to a blank line
while (<>) { # read in all paragraphs
s/\n/ /g; # remove all new lines in paragraph
print OUTfile "$_\n\n"; # print OUTfile paragraph with a blank line after it
}
print OUTfile "\n\n$header"; # print OUTfile header
Friday, June 15,
Hey Chas,
Saturday, June 16, 2001, 1:47:30 AM, you wrote:
CO> On 15 Jun 2001 19:31:39 -0400, Tim Musson wrote:
>> Hey Chas,
>>
>> Thanks, I run Win2k so had to make some changes (the unix \r\n is just
>> \n on the M$ OS's). I also had a question.
>>
&g
Hey Me,
Saturday, June 16, 2001, 2:03:07 PM, you wrote:
>> My next direction is OOP, but I have found it to be a
>> little beyond my grasp each time I try. Maybe with this
>> list's help I can get it.
M> First you have to unlearn.
M> Imagine you knew nothing about programming.
M> Now, I intr
Hey Pete,
Not sure why you want to call ls when Perl can do the same thing. I
asked the list a similar question (I needed to move old files to a
different top directory - retaining the path to each file) a couple
weeks ago and got the following. (btw, I run this on Win32, so you
will need to cha
Hey all you great Perlers,
I am helping out my Win32 Server Admin team. They need to clean up
the "network drives". Currently ~40Gb of data. We are looking at
making 3 passes.
1. Folders - for example the "Windows" and "WinNT" folders (people
were asked to backup their *
Hey Gary,
Tuesday, June 19, 2001, 8:03:23 AM, you wrote:
GLA> It's not too late, we can save you, use UNIX... come to the Dark
GLA> Side, Luke...
Dark side? I thought that was M$ - you know BORG, Dark Side, etc
GLA> I'm only sort of kidding but hey, I use a PC as well. Dang
GLA> Microsoft.
8<-
Hey Fabien,
Tuesday, June 19, 2001, 5:05:19 AM, you wrote:
FJ> I'm trying to use copy($name,$folder.$name), but it doesn't work!
FJ> Yet, I've put "use File::copy" in my program.
FJ> I tried with $name = "essai0.flr" and $folder="archive\\" on Win NT4
>From this list I have found that a great
Hey Brett,
Wednesday, June 20, 2001, 8:38:34 AM, you wrote:
>> Is there a Perl way to move a folder with out doing it one file at
>> a time? (Similar to M$ Windows Explorer where you can drag a folder
>> to another folder?)
BWM> Of course -- take a look at the File::Copy module. It has a move
B
Ok, I was wrong, the folder is created in the Destination dir, but it
is empty, and my perl code gives an error in the die statement...
Uncaught exception from user code:
Error: Permission denied
What am I doing wrong here?
>>> Is there a Perl way to move a folder with out doing it one
Hey Brett,
Wednesday, June 20, 2001, 9:51:09 AM, you wrote:
BWM> The function may not work across filesystem boundaries, and this
BWM> may include networked drives (especially on WinNT -- not sure
BWM> what it can do).
BWM> I think rename may also be usable, but again, it may have the same
BWM>
Hey Brett,
Wednesday, June 20, 2001, 9:52:01 AM, you wrote:
>> Uncaught exception from user code:
>> Error: Permission denied
>>
>> What am I doing wrong here?
BWM> Perhaps you don't have permission to access the drives or folders
BWM> in question?
Nope, my test drive is my ThinkPad's
Hey SAWMaster,
Wednesday, June 20, 2001, 12:10:49 PM, you wrote:
S> Hi group.
S> Short 'n sweet question. Is there a way to run perl programs from
S> the command line without having to precede usage with "perl"
I see you are running M$ Win, but which version? What Perl are you
running? I have
Hey james,
Can you change the Properties of the command window? Right click on
the blue bar at the top, Properties, then the Layout tab.
I typically set it to:
Screen Buffer Size:
Width 100
Height 300
Window Size:
Width80
Height 50
This should work on 98. I run Win2k, but it also work
Hey Jos,
I believe you have to use ! instead of "not" also...
Wednesday, June 20, 2001, 6:05:39 PM, you wrote:
JIB> i'd say, there is no 'like' operator...
>> This isn't working for me. Help please. What is wrong with the second if
>> statement
>>
>> while ( ($timestamp, $report_type, $gam
Hey Stéphane,
Thursday, June 21, 2001, 8:37:53 AM, you wrote:
SJB> How can I get the URL which was calling my script (like
SJB> document.referrer in Javascript)
SJB> tks
This will show you all the available ENV variables pick the one you
want and use it as $ENV{HTTP_REFERER}
#!/usr/loca
Hey james,
Thursday, June 21, 2001, 9:26:34 AM, you wrote:
jc> The version of DOS I have on win98SE doesn't allow for a scroll
jc> bar as suggested by one comment nor does it have a layout tab to
jc> set the size of the window although it does allow a set to a
jc> maximum of 50 lines.
Are you
Hey Nick,
Thursday, June 21, 2001, 2:46:11 PM, you wrote:
NT> Ok, I am running windows 2000, I have perl, but I do not know
NT> which distribution, I do not think that it is activestate's
NT> however. I searched by drive and found ppm in a folder in the
NT> perl folder, but there is no ex
Hey sridevi,
Friday, June 22, 2001, 3:07:40 AM, you wrote:
sa> Hi all, Could anyone briefly explain the difference between
sa> the shell script and the scripting language like perl? Thanx in
sa> advance, visu
sa> __
sa> Do You Yahoo!?
sa> Ge
Hey all,
I have this code fragment.
if ($Var eq "String") {
&Sub($Var1);
} elsif ($Var2 =~ /$STRING/) {
&Sub($Var1);
}
Is this a better way?
if (($Var eq "String") || ($Var2 =~ /$STRING/)) {
&Sub($Var1);
}
--
[EMAIL PROTECTED]
Using The Bat! eMail v1.53d
Windows NT 5.0.2195 (Ser
Hey iansmith,
Friday, June 22, 2001, 10:15:49 PM, you wrote:
>> &Sub($Var1); }
snip
i> You can also leave off the & if you are using Perl 5.
I am using the most recent from ActiveState, but I tend to stick the &
out there so I can tell at a glance that I am calling a sub. Does it
cause p
Hey Paul,
Friday, June 22, 2001, 10:14:28 PM, you wrote:
>> if ($Var eq "String") { &Sub($Var1); } elsif ($Var2 =~
>> /$STRING/) { &Sub($Var1); }
>>
>> Is this a better way?
>>
>> if (($Var eq "String") || ($Var2 =~ /$STRING/)) {
>> &Sub($Var1);
>> }
P> I like it better.
P> Perso
Hey Tim,
Sunday, June 24, 2001, 4:33:31 PM, you wrote:
TG> but i want to make the filename be $_."the current date"
TG> the localtime function doesnt look very promising, as the output is not
TG> very human readable :-)
I use localtime(time); all the time for this type of thing. here is
the c
Hey Perlers,
I asked this before, but I am still stuck, and never got a workable
solution.
Is there a way in perl to move a directory? Similar to unix "mv"
command where you move a dir to another location (I am not crossing
boundaries). I am on M$ Win2k, but the unix "mv" command is
Hey Sally,
Do you have "Learning Perl"?
Chapter 7. Regular Expressions
7.5 Substitutions
"If you want the replacement to operate on all possible matches
instead of just the first match, append a g to the substitution"
Monday, June 25, 2001, 6:21:08 AM, you wrote:
S> Cheers, that's all a book ha
I need to pass a number of parms to my program. Is there a "best
Practice" for how to do this? Command line is not something I want
to do.
I did search on "Config" from search.cpan.org, but it returned 99
modules!
Any suggestions? In the past, I have done it by hand, but...
--
Hey Jos,
Not sure I understand entirely, but I think I usually do #2 also.
For example, I tend to do something like this in my code. Comments
would be appreciated. (I have not tried to run this particular bit,
for example, I was reading and think lc %Hash will tr all the hash
value chars to lo
Hey Tim,
Wednesday, June 27, 2001, 3:16:45 PM, you wrote:
TM> Hey Jos,
TM> Not sure I understand entirely, but I think I usually do #2 also.
TM> For example, I tend to do something like this in my code. Comments
TM> would be appreciated.
TM> Is this what you are talking about?
ok, the previ
Hey Jos,
I like this option the best of the 3, but it is still hard to give to
a non programing person and not expect them to mess up setting the
vars...
ie, => is what you separate things with, explaining which ' to
use (' not `), end each parameter line with a ,
Wednesday, June 27, 2001, 6:15
Hey Grant,
Thursday, June 28, 2001, 5:34:26 PM, my MUA believes you used
Internet Mail Service (5.5.2653.19) to write:
GM> You might like to check out XML::Simple it was designed for
GM> exactly this problem.
GM> If you put your config data in a file called foo.xml:
GM>
GM> foo
GM>
Hey Michael,
Wednesday, June 27, 2001, 3:17:32 AM, my MUA believes you used
(X-Mailer not set) to write:
MF> On Wed, Jun 27, 2001 at 02:37:55AM -0400, Adam Theo wrote:
>> i am looking for a way my perl program can automatically get the
>> home directory of the user.
>> linux, windows, mac, etc?
Hey perl,
Monday, July 02, 2001, 5:21:16 AM, my MUA believes you used
(X-Mailer not set) to write:
pdo> hi,
pdo> I want to do this :
pdo> i have some servers where i want to check if some files exists and the user
pdo> must put the all path with the name of the file ...
pdo> use strict;
pdo
Hey Michael,
Monday, July 02, 2001, 4:32:10 PM, my MUA believes you used
(X-Mailer not set) to write:
>> You are correct. I believe that the backticks work on the
>> shell, so I replace `cls` with system("cls") and at least my screen
>> cleared as it was suppose to.
MF> Given the code sho
Hey RL,
Monday, July 02, 2001, 7:13:15 PM, my MUA believes you used
QUALCOMM Windows Eudora Version 5.1 to write:
Sounds to me like this is more of an OS issue, but here is my stab at
answering your questions.
RA> We copied some scripts from our old server onto our new one. They
RA> are both (A
PerlGuru's,
I had anif {} elsif {}and converted it to the following which
I like, but now find I need to match 3 things - not 2.
DoTheSub($PassedVar) if ($String eq "string") or ($foo =~ /$String/);
I tried adding another "or" to the above, but that did not work (I
didn't really think i
Hey John,
Ok, I stand corrected, I guess it was something else that didn't work.
Thanks!
Tuesday, July 03, 2001, 8:38:02 AM, my MUA believes you used
Internet Mail Service (5.5.2653.19) to write:
JE> Adding another or works.
JE> $String = 0;
JE> $foo = 0;
JE> $bar = 0;
JE> print "Hello" if ($
Hey Bill,
Tuesday, July 03, 2001, 10:05:47 AM, my MUA believes you used
Internet Mail Service (5.5.2653.19) to write:
CBT> Hi All
CBT> Has anyone used ActivePerl's Perl Package Manager to install CPAN
CBT> packages? I down loaded the Tk package and I am trying to install it locally
CBT>
perlpeople,
Is it better to open a log file only when I need to write to it, or
open it at the start, and close when done?
A few thousand lines in the log...
--
[EMAIL PROTECTED]
Using The Bat! eMail v1.53d
Windows NT 5.0.2195 (Service Pack 1)
When in doubt, think.
Hey Bill,
I have never grabbed the .zip files from ActiveState. I always just
run PPM and let it get the files... I believe you can do it manually,
I just have never had a reason to try. At a guess, you may have
problems locating the .ppm file?
Tuesday, July 03, 2001, 10:53:38 AM, my MUA beli
Hey Bill,
Tuesday, July 03, 2001, 3:33:42 PM, my MUA believes you used
Microsoft Outlook Express 5.50.4522.1200 to write:
BP> May I get some suggestions for any Windows-based PERL development
BP> tools? Preferably, free ones?
I like Vim www.vim.org and TextPad www.textpad.com.
Both have conte
Hey Jos,
I would be interested in how you go about running it from the network.
For instance, when you install it on a net drive, does @INC reflect
the correct locations?
Wednesday, July 04, 2001, 3:47:28 AM, my MUA believes you used
Microsoft Outlook Express 5.50.4522.1200 to write:
JIB> I'm n
Hey RL,
Wednesday, July 04, 2001, 9:41:19 PM, my MUA believes you used
QUALCOMM Windows Eudora Version 5.1 to write:
snip --
RA> When I run it in my ActivePerl.exe window --
RA> nothing happens.
Not sure what that is... Did you get your "ActivePerl.exe" window by
running perl.exe from W
perlers,
I want to split to @Group only if the 3rd element of @Line has data.
It works, but I get an error (Use of uninitialized value in split)
using -w, strict, and diagnostics. Should I be doing this differently?
I run this with a filename parm, and the file contains:
uid1,cn 1,ua_bit_essd
ui
Hey Chas,
Thursday, July 05, 2001, 1:16:05 PM, my MUA believes you used
Evolution/0.10.99 (Preview Release) to write:
>> I want to split to @Group only if the 3rd element of @Line has data.
>> I would like to put nothing in $Group[-1] if $Line[2] is empty.
>>
>> while (<>) { chomp;
>> my @
Hey Jeff & Others,
Thursday, July 05, 2001, 2:04:17 PM, my MUA believes you used
(X-Mailer not set) to write:
Thanks for the tip (don't my SOMETHING if CONDITION;).
I got the same response from 2 people. Is there a reason I should
pick one solution over the other? Or is this another case of
T
Hey Robert,
Friday, July 06, 2001, 4:01:39 PM, my MUA believes you used
Internet Mail Service (5.5.2650.21) to write:
RO> Hi gang,
RO> Can anyone recommend a good book/Website...something that could
RO> point me into the correct direction.
As others have suggested, I like Learning Perl, and t
Hey Suresh,
Friday, July 06, 2001, 1:15:22 PM, my MUA believes you used
(X-Mailer not set) to write:
SBAS> Any one will help me out to send e-mail with the help of code in
SBAS> my perl script.
There are lots of ways, I happen to like this one.
use Net::SMTP;
sendMail();
sub sendMail {
m
Hey Luke,
I would have to agree here. I was kind of pushed into learning vi
(had to admin an AIX server). Boy, am I glad I did, it is by far my
favorite editor. I now install Vim (www.vim.org) on every machine I
use. However, I also use www.TextPad.com too.
Friday, July 06, 2001, 4:47:02 PM, m
Hey Jorge,
Monday, July 09, 2001, 5:36:33 AM, my MUA believes you used
dtmail 1.3.0 @(#)CDE Version 1.4.2 SunOS 5.8 sun4u sparc to write:
JG> Hi How I can install Net::ftp I try with ppm but I didn't find it
JG> when I type search,I am under windows 98 and I wanted to install
JG> a ftp client.
Hey Stewart,
There are many ways to do this. I usually use Net::SMTP, but there is
also Net::Mailer (which I believe runs Net::SMTP for you), and
Net::Sendmail (and I think this runs Net::Mailer?).
I think you are missing the "datasend" To: & From: in your smtptest.pl
Here is the Net::SMTP temp
Hey Michael,
Monday, July 09, 2001, 7:35:04 PM, my MUA believes you used
(X-Mailer not set) to write:
>> There are many ways to do this. I usually use Net::SMTP, but there
>> is also Net::Mailer (which I believe runs Net::SMTP for you), and
>> Net::Sendmail (and I think this runs Net::Mailer?).
Perl Guru's,
I need to make some 250 one line changes (add port security) on a
Cisco Router. I can build the commands with no problem, but I have
never connected to a Cicso with Perl before.
What module would I use? Net::Telnet?
TIA
--
[EMAIL PROTECTED]
Using The Bat! eMail v1
\n\nStarting at $T[2]:$T[1]:$T[0]\n");
}
=head1 NAME
- Archive network file system files
=head1 SYNOPSIS
B reads (or creates if it does not exist) DriveCleanup.xml - the
configuration file. Then moves files to another directory, maintaining the directory
structure, for archive.
=head1 D
Hey Tom,
Wednesday, July 18, 2001, 10:25:02 AM, my MUA believes you used
(X-Mailer not set) to write:
TY> Hey all, Okay, I'm still trying to get this log file script to
TY> work. The end result should just be, if it's the 18th, the log
TY> file should be 09FIMSOM090Aevent-20010717.log. How
Hey David,
Thursday, July 19, 2001, 9:27:19 PM, my MUA believes you used
Internet Mail Service (5.5.2653.19) to write:
ND> Hi,
ND> When I use the following script to send mail:
ND> #!perl -w
use Strict; # here?
use Diagnostics; # here?
ND> ### script name "smtp_mailer2.pl"
ND> use Net::SMTP;
Monday, July 16, 2001, 4:23:26 PM, my MUA believes you used
(X-Mailer not set) to write:
BWM> On Mon, 16 Jul 2001, Stout, Joel R wrote:
>> WinNT comes with "Personal Web Server" (PWS) which is how I'm learning Perl
>> CGI. You can put your scripts in C:\Inetpub\wwwroot\cgi-bin. You can then
>>
Hey Mike,
My MUA believes you used (X-Mailer not set)
to write the following on Wednesday, October 24, 2001 at 5:01:29 PM.
MR> Hi all --
MR> I need to gather the MAC address from some win32
MR> machines. Which module would you recommend?
MR> Is Win32::NetAdmin the right one?
I would probabl
Hey Daniela,
My MUA believes you used (X-Mailer not set)
to write the following on Thursday, October 25, 2001 at 10:15:32 AM.
DMA> where can i obtain the software to install it
DMA> in my machine w95 or w2000??
www.activestate.com
It comes with Doc's (perldoc, and c:\perl\html\index.html)
DMA
Hey Jason,
My MUA believes you used (X-Mailer not set)
to write the following on Friday, November 09, 2001 at 9:00:17 PM.
You can use %ENV to access the environment (variables).
foreach $env_var (sort keys %ENV) {
print "$env_var = $ENV{$env_var}\n";
}
JYh> Hi Alfred, Base on your answer
one to do what
I want...
Thanks!
--
Tim Musson
Flying with The Bat! eMail v2.12.00
Taxpayer: Someone who doesn't have to take a public service exam to
work for the government.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://lear
about it:
CD> use LWP::Simple;
CD> unless (defined ($content = get $URL)) {
CD> die "could not get $URL\n";
CD> }
CD> Make sense?
Yep, I also noticed Net::HTTP. Any reason I should use one over the
other?
btw all, thanks for the quick response!
Hey Chris,
My MUA believes you used
to write the following on Tuesday, August 31, 2004 at 3:20:50 PM.
CD> On Tue, 31 Aug 2004, Tim Musson wrote:
>> CD> use LWP::Simple;
8< snip
>> Yep, I also noticed Net::HTTP. Any reason I should use
) {
| # do stuff, for example...
| print "$line\n";
| }
`-
--
Tim Musson
Flying with The Bat! eMail v2.12.00
To err is human; To moo is bovine.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
the output though. I need to process it
then print the line in one column of a table with the results of
another process in another column.
Thanks for your help!
--
Tim Musson
Flying with The Bat! eMail v2.12.00
Ever stop to think, and forget to start again?
--
To unsubscribe, e-mail:
= (
Name => uas123
Location => 123 street
Function => Mail
IPAddress => 10.11.12.13
)
Hmmm, I wonder if I just answered my own question by writing it down.
Thanks for any input/suggestions you may have!
--
Tim Musson
Flying with The Bat! eMail v2.12.00
Cannot open f
of the members of the security groups daily and a diff of yesterdays
report from todays.
Thanks for any suggestions you may have.
btw, I am running this on MS, but if you have *nix examples, I can
work with that too.
Thanks again!
--
Tim Musson
Flying with The Bat! eMail v2.12.00
The days of the
Hey Luke,
BL> Will this work?
Yes, that did the trick, thanks!
BL> {
BL> local $/ = "\n\n";
BL> while ()
BL> {
BL> for $line (split /\n/, $_)
BL> {
BL> # process lines in a dn section here
BL> next unless $line =~ /^(dn:|member:|group
*GroupC *GroupD
|*GroupE
| Local group memberships*RConsole Users *Users
|*Administrators
`-
Thanks!
--
Tim Musson
Flying with The Bat! eMail v2.12.00
Hey all,
My current source looks like this
ua_bit_essd_si
I split on _ into @dpt.
The people who control the data want to remove the _ chars and make
the delimiter based on the case of the chars (first char of each part
is uc, all others are lc)...
So the source would look like this
UaBitE
Hey Jeff,
My MUA believes you used (X-Mailer not set)
to write the following on Thursday, February 21, 2002 at 2:13:31 PM.
JjP> On Feb 20, Tim Musson said:
>>The people who control the data want to remove the _ chars and make
>>the delimiter based on the case of the chars (fir
Kim,
Thank you for the note. Please send on when the services are, I do
want to attend.
My MUA believes you used Microsoft Outlook Express 5.50.4133.2400
to write the following on Saturday, March 16, 2002 at 3:59:43 PM.
KR> I received this from Fred Freiheit this morning.
KR> Kim Rahl
KR> <
hey perl guru's,
I have need to do a bit reversal of a MAC address (some Token Ring to
Ethernet thing) and am stumped.
Cisco has an app on their web site if you can log in, but not
everyone can log in, and I am not always attached...
So I was thinking I would build one myself, but not
Hey David,
My MUA believes you used Microsoft Outlook, Build 10.0.2627
to write the following on Monday, March 18, 2002 at 4:22:02 PM.
>> 1. How do I brake the MAC Address up into bytes?
DG> I'm not exactly sure what format you're getting the MAC address in, but
DG> it looks like you're just s
Thanks to all who sent pointers!
Here is my code before I put it up as a web page tool (and clean it up
and comment it ).
comments/suggestions anyone?
#!perl -w
use strict;
use diagnostics;
my $debug = "yes";
my (@mac);
my $mac = "0123 6789 cdef";
$mac =~ s/\s//g;
my $i = 0;
while($mac =~ /(.{
Hey zentara,
My MUA believes you used (X-Mailer not set)
to write the following on Sunday, March 24, 2002 at 9:08:02 AM.
z> On Sun, 24 Mar 2002 03:31:17 -0800, [EMAIL PROTECTED] (Gary Hawkins)
z> wrote:
>>Is there a way to set up for starting a CMD window using a right click within
>>that folder
Hey Ted,
My MUA believes you used (X-Mailer not set)
to write the following on Wednesday, April 24, 2002 at 9:56:09 PM.
TH> Hello,
TH> I'm executing the 1st example (get sysUpTime) in the
TH> Net::SNMP module at
TH> http://search.cpan.org/doc/DTOWN/Net-SNMP-4.0.1/lib/Net/SNMP.pm
TH> The exampl
Hey Bryan,
My MUA believes you used Lotus Notes Release 5.0.5 September 22, 2000
to write the following on Thursday, April 25, 2002 at 1:41:05 PM.
BRH> This is the beginners list, right?
Yep
BRH> I heard that you could find code for almost anything at CPAN. How do you
BRH> go about this?
Go
Hey John,
My MUA believes you used Internet Mail Service (5.5.2655.55)
to write the following on Tuesday, April 30, 2002 at 9:32:33 AM.
JE> How can I resolve a machine name from an IP address? The machine
JE> that the script is running on is NT4.
JE> I've tried this (with use Socket qw(:DEFAULT
Hey Josef,
My MUA believes you used Microsoft Outlook Express 5.50.4133.2400
to write the following on Tuesday, April 30, 2002 at 3:37:35 PM.
JEG> Thanks for your reply Dave. Now I am getting 'No such file or
JEG> directory' when i am sure that the file exists
JEG> I changed line 1 to:
JEG> $fil
Hey LeeRM43,
My MUA believes you used Atlas Mailer 2.0
to write the following on Friday, May 3, 2002 at 7:13:49 AM.
Lac> Check out the overhead view of your house at:
Lac> terraserver.homeadvisor.msn.com
Lac> Do not put WWW in front of the above.
You get a better photo from www.Mapquest.com
H
Hey Tim,
My MUA believes you used The Bat! (v1.60h) Personal
to write the following on Friday, May 3, 2002 at 7:37:43 AM.
TM> Here is my house...
Sorry, looks like a mail template got away from me...
--
[EMAIL PROTECTED]
MUA = TB! v1.60h (www.RitLabs.com/The_Bat)
Windows 2000 5.0.2195 (Servic
Hey John,
My MUA believes you used (X-Mailer not set)
to write the following on Friday, May 3, 2002 at 8:32:28 AM.
JB> How did you get the aerial photo? I can't find any links to show
JB> ariel photos when I start over with my own location.
at mapquest, bring up your street, the just above the m
Hey Bill,
My MUA believes you used Microsoft Outlook Express 6.00.2600.
to write the following on Saturday, May 11, 2002 at 9:48:14 PM.
BL> I'm making a script that will sent info to a user verify.
BL> like this
$MAIL->>datasend('.$fname'."\n");
BL> is this correct or not
BL> Also I need
Hey Haitham,
My MUA believes you used Microsoft Outlook Express 6.00.2600.
to write the following on Friday, May 17, 2002 at 10:08:48 PM.
HNT> Hi, I am working on a chunk of PERL software that can find out
HNT> the groups of consecutive numbers located within a list. For
HNT> instance imagin
Hey all, I have noticed people suggesting/using the 'use warnings;'
statement, and I had been using the 'use diagnostics;' statement. I
started the 'diagnostics' thing based on reading this list a number
of months ago. Now the recomendation seems to have changed. Is
that true, and if
1 - 100 of 168 matches
Mail list logo