Hi,
As everyone, I have a bunch of "titles" to parse.
For each title I must create a directory with a similar name, and within that
directory a file called area.txt that has the title name inside.
No problem with that, but the directory names can't contain spaces, quote, double
quote... that pa
On Nov 19, Wiggins d'Anconia said:
>Jeff 'japhy' Pinyan wrote:
>
>
>> If you're using Perl 5.6, I have the solution for you. You can use the
>> INIT block. It is executed immediately after compile-time.
>
>For clarification, this is 5.6. and anything after, correct?
Yes, good point.
--
Jeff "
Jeff 'japhy' Pinyan wrote:
If you're using Perl 5.6, I have the solution for you. You can use the
INIT block. It is executed immediately after compile-time.
For clarification, this is 5.6. and anything after, correct?
http://danconia.org
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
On Nov 19, Sturdevant-Contractor, Robert W said:
>Is there a special name (like $_) to identify the array element being
>addressed as in the following code:
>
>foreach $element (@array) { do something };
I think you mean "array index". $element is the array element. And no,
there is no such fea
On Nov 19, Dr. Poo said:
>I'm trying to declare a variable $log that is a reference to an array that
>will contain the small amounts of data that need to be logged throughout a
>backup script i'm working on. I'd like to declare this scalar reference in
>the BEGIN function, but i can't use it outsi
Hallo.
Jason [Tuesday, November 19, 2002, 10:11:45 PM]:
JF> But, if I go the way of the fork, the program cannot be broken down into
JF> lots of mini-programs which are designed to do a single job.. everything
JF> would have to be rolled into one larger program with (I'm guessing here)
JF> multipl
I have the code (below) that works fine with the older version of
MAIL::SENDER (v0.7.06) but will not send with the new version of
MAIL::SENDER (v0.7.14.1) . Any thoughts?
$sender = new Mail::Sender {smtp=> 'mail.conway.acxiom.com', from=>
$assigned . '@acxiom.com',to=> $dcarep . '@acx
Dr. Poo wrote:
I'm trying to declare a variable $log that is a reference to an array that
will contain the small amounts of data that need to be logged throughout a
backup script i'm working on. I'd like to declare this scalar reference in
the BEGIN function, but i can't use it outside of the
I'm trying to declare a variable $log that is a reference to an array that
will contain the small amounts of data that need to be logged throughout a
backup script i'm working on. I'd like to declare this scalar reference in
the BEGIN function, but i can't use it outside of the BEGIN function if
Try passing $safe as a parameter to backThatThangUp(). Also, the ampersand
before the function name is really not used anymore, and is supposed to
denote that you wish to turn off prototyping. Anyway, try passing $safe as
a parameter, and add the following line at the beginning of the function:
This has been recently discussed on this list, here is a link to the archive if you
would like to see the old postings:
http://archive.develooper.com/beginners%40perl.org/msg37069.html
http://archive.develooper.com/beginners%40perl.org/
In particular you should check out perldoc -f system if you
Hello all --
The script I'm working on is here:
#!/usr/bin/perl
# A script to back up all of the important information on .
# Written by: Charlotte M. Oliver
# Written on: 11/13/02
use strict; # Be pedantic.
my ($safe, $getDirs, $backThatThangUp, @directories, $copy);
$safe =
Mark wrote:
>
> I want to be able to determine what zone a zip code falls in from a user
> input. Once I write the hash, the data contained within it will remain
> unchanged throughout the script except maybe for the occasional update if
> things change.
>
> I am just unsure of which approach w
Yep, just leave off the "$element" from the statement you wrote. Then you
can use $_ for the current element.
Example:
@array = ("first", "second", "third", "fourth");
foreach (@array) {
print "$_\n";
}
would print
first
second
third
fourth
- Alan
-Original Message-
From: Sturdevan
Hrm.. didn't think of that ... *heh* Good idea ...
I'm gonna use the Proc::Daemon module though .. seems to do exactly what
I need without messing with forking directly...
On Mon, 2002-11-18 at 21:29, Steve Grazzini wrote:
> That's all more or less correct, but you're missing a fundamental
>
Hi all,
Is there a special name (like $_) to identify the array element being
addressed as in the following code:
foreach $element (@array) { do something };
In other words, the above iterates thru the array finding elements
$array[0..n]. Can I tell the specific element being enumerated using a
Jason Frisvold <[EMAIL PROTECTED]> wrote:
> I'm writing a monitoring system (Yes, still... Finally got the
> go-ahead to do this) and my design calls for a central "Smart"
> Daemon that spawns and monitors the lesser Daemons that do the
> actual monitoring. My problem is that I'm not sure how
I have read the perl docs again and agin, please can SKS show me how to run one perl
program from another - I have a menu program that has as an option the running of a
second (menua.pl) program and just can't find out how to do it. I supect that its akin
to runnning a bash comand from perl but
On Tue, 19 Nov 2002 11:41:09 -0500, "mark" <[EMAIL PROTECTED]> wrote:
>
> I want to be able to determine what zone a zip code falls in from a user
> input. Once I write the hash, the data contained within it will remain
> unchanged throughout the
On Tue, 19 Nov 2002 11:41:09 -0500, "mark" <[EMAIL PROTECTED]> wrote:
>
>
> A really good hash tutorial would be of excellent help if anyone can guide
> me to an online one. Bare in mind that I am a novice. :-)
>
This should get you started:
On Tue, Nov 19, 2002 at 11:34:24AM -0500, Sam Harris wrote:
> I hve the follwing lines which are ginving error on line 1, please help
> , thanks
Do you want to tell us which error is shown?
bye,
Da.Ta.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTE
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Tue, 19 Nov 2002 11:34:24 -0500
"Sam Harris" <[EMAIL PROTECTED]> wrote:
> I hve the follwing lines which are ginving error on line 1, please
> help, thanks
>
> use Digest::MD5 qw(md5);
This line should be written as:
use Digest::MD5;
qw(md5);
A
I want to be able to determine what zone a zip code falls in from a user
input. Once I write the hash, the data contained within it will remain
unchanged throughout the script except maybe for the occasional update if
things change.
I am just unsure of which approach would be the best or if I ha
I hve the follwing lines which are ginving error on line 1, please help
, thanks
use Digest::MD5 qw(md5);
$md5 = new Digest::MD5;
open(PASSWD,"/etc/passwd") or die "Unable to open passwd:$!\n";
# these two lines called also be rolled into one:
# print Digest::MD5->new->addfile(PASSWD)->hexdigest
I believe I have an answer to this now ...
In talking with a local perl programmer, he mentioned the Daemon modules
on CPAN. I did some research and it looks like I can use the
Proc::Daemon module to do exactly what I want. Basically, it forks
itself immediately and "detaches" itself from the
>From perlfaq8,
How do I ask the user for a password?
(This question has nothing to do with the web. See a different FAQ for
that.)
There's an example of this in crypt in the perlfunc manpage. First, you put
the terminal into ``no echo'' mode, then just read the password normally.
You may do thi
On Nov 18, mark said:
>Should I list zones as the name component with zips as a list of values and
>try to work through the values to establish a zip's zone identity.
>
>%zone={
>one => [370,422..430,476,490..500]
>two=> [200..232,388]
>Or should list all the possible zips as the name component w
Hi All:
I'm trying to hide the entry on the screen of a password as it's being
entered on Windows NT. In Unix I can simply use
system "stty -echo";
but "echo off" in NT does not do the trick.
Can anyone suggest a Perl method, or an NT method please?
Thanks
Rob Das
Oracle DBA
MEDecision.com
61
On Nov 19, Nandita Shenvi said:
>I have variable $e-mail the value of the var is an e-mail address, now I
>would like to to store the value of the variable under another name for
>example email_id001 or email_id$i, where $i is just a interger.
No. You do not want $email1, $email2, $email3, $ema
Hi Nandita
I think you just want to concat no.s to ids
probably this may help
$em = "nandita\@yahoo.com" ; ## " \ " to remove spcl meaning of @
$i = "001";
$emid = $em.$i;
or##
$emid1 = "$em$i";
print " $emid or $emid1 ";
- Original Message -
From: "Nandita Shenvi" <[E
Hi -
1) Variable names consist of a type ($ @ % ...) followed by
[a-zA-Z0-9_] so your variable $e-mail is an invalid name
(perl would read this as $e - mail and choke. It should be
my $e_mail;
(but this was prob only your typo).
2) assign the value to move it to another variable:
experts pls help.
Hello,If this is a question for a different group,could someone please redirect me.
I am kind of beginner with socket prog .I am just trying to connect a server and a
client.I am unable to receive data from the client.
my output is
port :2354
addr = 2
127.0.0.1
cant receiv
An equally valuable answer to my question would be a good online tutorial
about using perl hashs inside out. I haven't found that yet. Most of the
stuff I find in the documentation at perldoc are brief and lack any real
indepth discussion of the number of ways to use a hash.
Also, do the archive
But, if I go the way of the fork, the program cannot be broken down into
lots of mini-programs which are designed to do a single job.. everything
would have to be rolled into one larger program with (I'm guessing here)
multiple fork points to handle each different type of system I'm trying
to run .
hallo All,
My problem, i will explain in terms of an example:
I have variable $e-mail the value of the var is an e-mail address, now I
would like to to store the value of the variable under another name for
example email_id001 or email_id$i, where $i is just a interger.
The problem may seem
yes u r right,but i want to move to local drive(c:) of my system.
This rules wizard moves to the folders that u have created in outlook.
Regards
j@veed
SIEMENS
Bangalore, India.
Tel: (Off) +91-80-8521122 Extn: 4919
(Dir) +91-80-8091919
Fax: +91-80-8521337
-Original Message-
F
I wouldnt use perl for this. In outlook you have an rules wizard that can move mails
when they arrive to a diffrent folder, but yes its sure is "doable" in perl, but why
invent the wheel again?
//Dave
-Original Message-
From: Javeed SAR [mailto:[EMAIL PROTECTED]]
Sent: den 19 november 2
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Tue, 19 Nov 2002 09:57:58 +0530
Javeed SAR <[EMAIL PROTECTED]> wrote:
> Can i filter incoming e-mails.
> I am using exchange server (outlook) on win2k.
You can sure filter emails but I'm not sure how to with Exchange Server
and Win2k. If you'd sa
38 matches
Mail list logo