Actually he wanted free documentaion not Oreilly stuff. It's not free last
time I checked.
If you want Oreilly stuff then try this:
http://oreilly.com/
This is just what you want:
http://www.mamiyami.com/document/oreilly/
On Tue, 16 Nov 2004 11:02:18 +0800 (CST)
Stephen Liu [EMAIL
I believe you want to print $!. Give it a try.
Hello
This does not work.
`cp $srcfile $dstfile`; || do {
print cannot copy $srcfile to $dstfile;
};
do is also execute if cp working fine. Whz is this so? The next thing I
would like to
know how I can print the cp's
Looks ok to me.
What you are probably seeing are the tests usually associated with the CPAN install.
It may also find a new version the CPAN.pm module and upgrade it on the fly. It does
that every now and then.
I didn't see anything to worry about. Looks like the 'make install' worked just
You might want to try downloading the binhex code and build it without cpan. I did
find this during my google on ExtUtils::Command::MM
It suggests the code is not stable. Might be the problem. It's not on your system and
CPAN installs of it might be a problem.
Chris Devers wrote:
On Mon, 13 Sep 2004, Patricio Bruna V. wrote:
where i can start?
Google?
Amazon?
Specific, concrete questions?
Personally I started at the beginning. But that's me ;-)
Seriously though. Perhaps starting at perl.apache.org. Also, there is
the Oreilly book
Thank you for your response.
Sorry for the newbie question, but from where and how do install the
Convert::BinHex code and build it?
Thank you, again.
James
No worries. I usually go to cpan.org.
Here is the direct link to the info page. Lots of good details on how it
works.
I would run system commands with the backticks. That tells Perl to run the command
and place the contents in the variable you defined.
System OTOH returns if the command completed successfully (at least I believe that's
what happened here).
Moon, John wrote:
Hello,
I run the
Personally I figured the original coder would join this list and respond (or at least
respond). If he's really interested in Perl then more questions/answer would come.
Silence get's his request dropped from my short term memory :-)
Wiggins d Anconia wrote:
Gregorie Hostettler wrote:
Good point in fact Oracle (for example) recommends setting the environment before you
even install Oracle. To do it any other way invites trouble and as Oracle would say,
you're on your own :-)
jason corbett wrote:
How does one go about assuring that the environment variables are
Several ways come to mind including hashs or possibly an array. If it doesn't have to
stay in memory (I know he said memory.. just exploring options), it's always possible
to setup maybe a DBM hash and write/pull off of that (Yes I know it was already
mentioned... I'm agreeing with Wiggins
below. Take it or leave it.
This is turning into a flame so I'll end is now.
Regards.
n Sun, 11 Jul 2004 12:54:30 -0600, u235sentinel
[EMAIL PROTECTED] wrote:
I agree. If they are a competent company then shallow knowledge of Perl
will get him nowhere. I've been studying for almost a year and have
I agree. If they are a competent company then shallow knowledge of Perl
will get him nowhere. I've been studying for almost a year and have
written basic code (IMO) to accomplish a few things. In a recent
interview I was asked about my Perl knowledge. They had a couple of
basic questions
Jenda Krynicky wrote:
Here are a few subjects I've seen in the list lately:
From [EMAIL PROTECTED]
I simply delete them without a second thought.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
Bakken, Luke wrote:
How nice of you to decide this for O'Reilly.
I think the local grocery store has made enough money for today, and I
think I'll go in and take an apple.
Why just an apple? Why not a big fat steak? It doesn't have to end
there also, maybe I can come back for dessert later :-)
Beau E. Cox wrote:
On Thursday 24 June 2004 08:32 pm, Charlene Gentle wrote:
You can use the 'system' command:
##--master--
...
my $rc = system perl slave.pl;
...
Does this mean it runs in parallel with the parent Perl Program?
Reading through Learning Perl 3rd Edition and I thought I
Wiggins d Anconia wrote:
Not exactly, it has been forked and does technically run in parallel,
however 'system' blocks your current process waiting for the child to
finish, so your process is in fact running, but it won't be doing any
work except for waiting for a signal from the child.
There are
. Smith
OhioHealth IT
UNIX / TSM / EDM Teams
u235sentinel [EMAIL PROTECTED]
06/25/2004 11:58 AM
To:
cc: [EMAIL PROTECTED]
Subject:Re: 'system' and parallel execution (was: Re: How to call a perl
script)
Wiggins d Anconia wrote:
Not exactly, it has been
Wiggins d Anconia wrote:
perldoc -f exec
Ok. makes sense.
*** Since it's a common mistake to use exec instead
of system, Perl warns you if there is a followingÂ
statement which isn't die, warn, or exit***
I've pretty much decided it's either system or a filehande process for
Wiggins d Anconia wrote:
It's dangerous to make blanket statements like this. Each is a tool that
should be understood and applied in the right manner.
I agree with this. Generally system would be the right fit for many of
my Perl programs. However exec has it's place like any tool.
That is
I haven't used it myself however I understand there is Active Perl for
Windows available. I don't have any details but perhaps you could
google for it or someone here could give you directions.
Ron Smith wrote:
I'm in a situation wherein I want to brush up on my 'Perl', but have no personal
I agree. Also Perl for Dummies might help a bit. In the back there is a list of
major commands typically used in Perl. The book was ok. Learning Perl 3rd Edition
by Oreilly was better IMO.
Karen,
I realize I am not answering your question directly but may I suggest
that you purchase
Understood however I thought you were also lookinig for a glossary of Perl commands.
The Perl for Dummies book has such a list in the back. Learning Perl doesn't have
a list. Still... it's currently my favorite Perl book :D
From: [EMAIL PROTECTED]:
I agree. Also Perl for Dummies might
What have you tried so far? Perhaps we can help tweak the code.
Anthony J Segelhorst wrote:
I am trying to set up a script that will do the do a current time -1
routine.
Examples:
Current Time:
mmddyy:hhss
052804:1030
Output:
052804:0930
Current Time:
052704:0015
Output:
052604:23:15
I think
hehehe... You might be surprised.
While IANACY (I an not a coder... yet!), I have dabbled with other
languages. The last 6+ months I've been studying Perl programming
intending to push into coding. I've seen code in other languages (C for
example) and much of it looks very similar to Perl.
I am not sure HOW to do the file size check.
(untested)
if -s $filename 100 then print $filename greater than 100 bytes!;
Something like this perhaps?
If you also need the actual size then perhaps this will work (again untested)
my $size_in_k = (-s) / 1000;
print $_ is $size_in_k Kbytes;
If I'm reading this correctly, you are trying to match a word at the end of a string.
If that's the case then move the word boundary to the end of your match.
print $ .\n if (/eat\b/);
print $ .\n if (/gre\b/);
Reading from the Learning Perl 3rd Edition on page 108:
The \b anchor matches at
Wouldn't it be this instead?
substr $_, index($_, $ss), length($ss) = $rs;
I was looking up substr and didn't see a fourth parameter. Didn't have a chance to
try it either :-)
Thx
On Apr 14, 2004, at 2:06 AM, Bryan Harris wrote:
A quick question for the wizards--
Will I do?
Is
That won't work. Because of precedence it evaluates to:
substr $_, index($_, $ss), ( length($ss) = $rs );
Ok. I get it now. Didn't realize I was doing that :D
perldoc -f substr
I was looking it up in the Learning Perl 3rd edition.
/me slaps Oreilly
Still a great book. Should have
What have you tried? Please post the code so we can help
Bajaria, Praful wrote:
Hello,
I would like to swap the file name only and not the extension or the
content.
Example:
There are two file : 1.jpg and 3.jpg
output = 1.jpg becomes 3.jpg and 3.jpg becomes 1.jpg
OR
1.jpg and 3.gif
I started with the Learning Perl 3rd Edition and have moved to Perl Object,
References and Modules both published by Oreilly. Been working with Perl code for a
few months now. I also have purchased the Perl Cookbook. There are many great
examples how to do something useful. Great books!
Does the following turn off strict for a vars?
no strict vars;
Could you also turn off strict for other things besides vars, refs and subs? Say for
a subroutine (for example).
Just curious. I've run into situations where I've come across badly maintained code
and would like to do this for
I'm wondering if there is a perl module to read from the apache server
status screen. Doesn't it tell you the server version running?
Also, when you connect to a web server, doesn't it pass along this
information also?
Been awhile since I've worked with web servers (I'm still a perl noob
I know this doesn't fully answer you question but I'm wondering, do you mean files
that your users haven't accessed in 30 days? What if they are using it like once a
week?
I'm reading through the Learning Perl 3rd Edition and on page 159 there are a number
of file tests available. If your
Not the prettiest way but here is how I check if File::Find is installed:
perldoc -X File::Find
Like I said, it's not pretty. I figure there wouldn't be a doc on the machine if the
module wasn't there. Bad presumtion I know. Still, maybe someone can help educate
us. I'm a sorta
Perhaps you can post the code so we can look at it?
Or even a link where we can get it. I'm not familiar with that tool.
Thx
Not really a perl programmer but have used the perl utility mirror for
a good number of years now. The problem I have is that mirror worked on
RH8 but does not on
Is there a CPAN module to pull netstat summary information from a system?
Rather than run 'netstat -s', I was hoping to find some way within perl.
What I basically want to do is generate a couple of reports from the summary output.
ICMP and TCP information. If someone can point me in the
This works however I was hoping perl had a module so I didn't have to run a system
application. I've been playing around with modules such as scp, telnet and ftp. I'm
curious if there is one for netstat.
thanks :-)
I am still new to working with Perl myself but I think I know the anwer
to
In addition, I've been playing around with the 'use diagnostics' feature in perl.
That's in addition to 'use warnings'. I don't recommend it for regular coding but
when stumped it may help.
On Feb 19, 2004, at 3:14 PM, Anthony Vanelverdinghe wrote:
Hi
Howdy.
Could anyone please
Unfortunately this attitude is not solely American. We've been around for only 200
years and these problems seem to come from much MUCH further in the past from a
variety of countries.
Now back to the reason we are really here. Perl anyone ::grinz::
Lone Wolf wrote:
Nah, because the only
I've been holding off on responding to this thread but now
I've dealth with security for some time on Unix/Linux systems. Some of
my favorite products certainly have the ability to perform a counter
attack however the author of those products always warn the user NOT to
taunt happy fun
I'm still learning myself and haven't tried sending email's from perl scripts (yet).
I did however notice one typo which might help you grab more info on what's going on.
Check the below in your code. Change 'use warnigs' to 'use warnings'
Hopefully it will help give you a bit more to go on.
I'm nearly finished with this book (definitely excellent book!). Some items I need to
review again (expressions will take some work). Afterwards I plan on moving upward
and onward in perl. I'm curious if Oreilly's Programming Perl or Perl Cookbook
would be good to jump into. Or is there
After being part of this list for a month, I don't recall seeing more than just this
email requesting removal from the list.
Oh well. An amusing message. I see them all the time in the Linux mail lists I
participate in. Pity people can't follow directions :-)
Uhhh...at the bottom of every
While I've already done this with a simple shell script using grep, I
was trying to figure out how I can do the same thing in perl.
I have an access_log from my apache web server and while I can manually
enter a date for my pattern match (which works fine), I can't seem to
get it automated
::grinz::)
If there is a perl function that will populate a variable with today's
date please let me know. I'll try the system/exec commands and cross my
fingers :D
Thx
Randy W. Sims wrote:
On 12/26/2003 5:39 PM, u235sentinel wrote:
While I've already done this with a simple shell script
in the first
place.
FYI... %e would have blank padded what I was looking for. The access
logs in apache have the / between the month and day. The error logs
however would have worked with %e since they space out the month day.
Thx again!!
John W. Krahn wrote:
U235sentinel wrote:
While
weeks of perl coding
So now I've learned a few new ways to pull stuff into perl.
Thx guys!
R. Joseph Newton wrote:
u235sentinel wrote:
While I've already done this with a simple shell script using grep, I
was trying to figure out how I can do the same thing in perl.
I have an access_log from
I'm a newbie to perl also. Been workign with it for a whole 2 weeks
now. Actually.. make that 3 ::grinz::
Warning.. lengthy email below.. I beg forgiveness in advance :-)
Ok. Here is what I did.
#!/usr/bin/perl
@array1[0..5] = 1;
@total[0] = 0;
for($i=0; $i4; $i++)
{
if($i == 0)
{
But wouldn't the original initilization also work?
@array1[0..5] = 1;
This seemed to populate the array just fine.
Randy W. Sims wrote:
On 12/25/2003 2:51 AM, Duong Nguyen wrote:
From: Randy W. Sims
On 12/25/2003 12:59 AM, Duong Nguyen wrote:
Hello everyone,
Sorry for the
Understood. I guess I was trying to show him ( the senec route) that
basically no running total was being compiled. Also that wasn't
the total. I guess it was too late at night for a simple response from
me :-)
Charles K. Clarkson wrote:
u235sentinel [EMAIL PROTECTED] wrote:
[snipped
to use =(1) x 6 you could do it this way.
I had confused where the .. goes :-)
thx for the clarify
Randy W. Sims wrote:
On 12/25/2003 12:18 PM, u235sentinel wrote:
But wouldn't the original initilization also work?
@array1[0..5] = 1;
No. Think of this in terms of parallel assignment
51 matches
Mail list logo