On Tue, May 22, 2001 at 09:37:13AM -0700, Paul wrote:
> Anybody know if there would likely be any problem with building a
> "case" statement like the folowing (without installing Switch.pm)?
>
> sub rate ($) {
> $_[0] eq 'A' ? .03 :
> $_[0] eq 'B' ? .05 :
> $_[0] eq 'C' ? .06 :
>
On Wed, May 23, 2001 at 02:59:13PM -0500, Tom Yarrish wrote:
> Hey all,
>
> Been reading the list for a little while, and had sort of a philosophy
> question for the group. I've been trying to learn Perl for some
> time (in fact, my company has offered to pay for me to take a Sun
> course on it).
On Wed, May 23, 2001 at 03:32:18PM -0500, Tom Yarrish wrote:
> Okay, in answer to your question, my background is mainly in
> Network/System Administration. Starting on Windows systems, and then
> moving into Unix/Linux systems after that. I've played around a bit with
> VB and C++. I've never
On Wed, May 23, 2001 at 04:52:06PM -0400, Yacketta,Ronald J wrote:
> Folks,
>
> I search CPAN and found a good deal of Mail packages, seeing that I am
> frankly new
> which of them would you recommend to use in a perl script that will be
> sending a single
> email at the completion of a set of ta
On Thu, May 24, 2001 at 11:38:32AM +0100, Hobson, Neville wrote:
> I'm writing perl scripts that will be distributed to locations where I
> cannot gaurantee the location of perl. Is there a clean alternative to the
> shebang with the specific perl path? Maybe using an environment variable to
> loc
On Thu, May 24, 2001 at 01:21:47PM +0100, Andy Roden wrote:
>
> Anyone help out...
>
> %router_tables is something like (1.1.1.1|cisco, 2.2.2.2|juniper etc)
>
> foreach $i (sort keys %router_tables)
> {
> next if ($i =~ "unknown");
> ($router_table{i},$router_type{$i}) = split(/
On Sun, May 27, 2001 at 11:32:16PM -0700, Helio S. Junior wrote:
> Is there anyone using one of these modules?
> I would like to exchange information about
> how to use them.
You're likely to find people using those modules on
<[EMAIL PROTECTED]>. For more information, see the
archives at:
On Tue, May 29, 2001 at 05:24:07PM +0400, kosta wrote:
> Can I have DBI package installed on the following build of perl:
> ActiveState perl-5.6.0, MSWin32-x86-multi-thread?
Yes. You probably want to use ActiveState's PPM installation utility.
At the command prompt, type 'ppm'. At the 'pp
On Tue, Jun 26, 2001 at 06:05:15PM -0400, Gross, Stephan wrote:
> Why is this style
>
> if ($x) {
> do this;
> do that;
> }
This style is also known as The One True Brace Style, popularized by
Kernighan & Ritchie (in _The C Programming Language_). It's also popular
with other languages
On Fri, Jun 29, 2001 at 11:31:28AM -0500, Hal Wigoda wrote:
>
> When you install a perl module from CPAN
> should you do it as root???
That's the easiest way to do it.
Another possibility is to install somewhere else on the file system,
not in the system site_perl directory. That other direct
On Fri, Jun 29, 2001 at 12:10:04PM -0500, Hal Wigoda wrote:
> I'm trying to install a module as root
> from cpan
> and it is looking for my ncftp program
> and it is not found.
>
> What do i do now??
>
> I'm using mandrake 7.2 on my linux server.
You can install ncftp from your mandrake CDs, or
On Thu, Aug 02, 2001 at 12:51:55PM -0400, Ron Woodall wrote:
> Hi All:
>
> A bit of a conundrum here.
>
> while (attlist[$x] =~ m|
On Wed, Aug 08, 2001 at 02:24:39PM -0500, Mooney Christophe-CMOONEY1 wrote:
> > From: Sudarsan Raghavan [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 08, 2001 1:48 PM
> > To: Sophia Corwell
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: Deleting leading/trailing whitespace
> >
> >
> > ($temp)
On Thu, Aug 09, 2001 at 11:35:13AM -0500, Frank Newland wrote:
> Readers:
> awk has a function called 'getline' which reads the next line of input
> without changing control of the script.
Perl is unlike sed and awk in this respect; program control is not
determined by reading sequential lines
On Tue, Aug 14, 2001 at 09:04:06AM -0500, David Simcik wrote:
> I've been perusing the Camel book, the Cookbook, CGI Programming w/Perl, and
> Effective Perl for answers to this question, but have yet to find one or two
> definitive solutions. I've seen the standard die/eval() statements and the
>
On Wed, Aug 14, 2002 at 02:53:49PM -0400, Nikola Janceski wrote:
> WTF doesn't perl -c check for valid subroutines/function calls?
Because it's quite possible to define subs dynamically. That is,
the sub isn't defined directly in your code, but is created (and
installed) after your code has star
On Wed, Feb 13, 2002 at 08:40:14AM -0800, John wrote:
> I have a scalar variable containing HTML that needs to be converted
> to XML. It's not the best HTML so it has invalid characters (like
> smart quotes, 1/2 character, etc.). I need to determine if these
> characters exist in the data and
On Sun, Mar 03, 2002 at 06:29:09PM -0800, Randal L. Schwartz wrote:
> Initially, you can use DBD::CSV or that
> new DBD::-thingy that is more complete,
That would be DBD::SQLite.
Z.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Thu, Mar 21, 2002 at 10:54:18AM +1000, Ken Cole wrote:
> I have an inherited web app that works like this.
[...]
> My question, in my experience NFS is not the quickest program around.
> Will it be faster to use say LWP or Net::ftp or similar to put and get
> the files in question than writin
On Fri, Mar 22, 2002 at 09:37:05AM -0500, David Gray wrote:
> while() will create an infinite loop,
No, it won't. The "while ()" idiom will read one line at a
time and automatically terminate the loop at the end of the file.
> so you do need some sort of
> sentinel value to break out of the lo
On Mon, Apr 08, 2002 at 03:39:34PM +0200, Rune Hegrenes wrote:
> I'm trying to execute a stored procedure in my database from Perl.
>
> I seen get only the first resultset from the procedure, not the
> rest (the procedure returns 4 resultsets).
>
> How do I do this?
>
> I'm using the DBI::Sybase
On Tue, May 07, 2002 at 11:30:03PM +0800, Ilarionov wrote:
> Are there any links, tips, scripts,
> about business graphics creation
> by perl?
What do you mean by "business graphics"?
If you mean things like charts and graphs, then look at the
GIFgraph, PNGgraph and GD::Graph modules for a sta
On Wed, Sep 19, 2001 at 04:33:18PM -0500, David Simcik wrote:
> Hi!
> A little off-topic I know, but since I'm using Perl for the script, well...
> ;-) Anyways, I have an XML document and I want to use
> (whatever its type is actually called) to keep some content from being
> parsed by the
On Thu, Nov 15, 2001 at 03:08:48PM -0500, Glenn Cannon wrote:
> Now all I need is a way to work out the last day of the month. Most of them
> should be easy, but that damn February...
Find the first day of the next month (remember december/january rollover)
and subtract one day:
## hacking ja
On Tue, Nov 20, 2001 at 11:04:15AM -0800, A. Rivera wrote:
> Is there a quicker way to write this..just curious..
>
> $count=&SomeFunctionWitchReturnsaNumber;
> $count=$count+1;
$count = SomeFunctionWhichReturnsANumber() + 1;
Z.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
On Wed, Nov 28, 2001 at 04:54:53PM +0800, Terrence Chan wrote:
> I'm new to OO Perl and I wonder if it is possible to implement Sigleton
> pattern in OO perl. And how it is implemented.
>
> Any info/pointer is welcomed.
Check out search.cpan.org for "singleton". You'll find this:
http://search
On Wed, Nov 28, 2001 at 12:38:48PM -0500, [EMAIL PROTECTED] wrote:
> Can anyone tell me why he/she will choice PERL over PHP?
There are lots of reasons. The most important reason to use Perl
instead of PHP is that Perl is useful in many areas - web programming
as well as system administration a
On Wed, Nov 28, 2001 at 08:19:26PM +0200, Zysman, Roiy wrote:
> > Lets see who can write the most lean ,mean , elegant , powerful, poetic
> > (but most important) _Shortest_, script that cleans from a directory
> > files that are at least 3 days old.
perl -e 'chdir(shift @ARGV); sleep(3*86_400);
On Thu, Nov 29, 2001 at 11:53:38AM -0500, Johnson, Shaunn wrote:
> [sample]
>
> 2001q2 06 P92786 IEMMM01 1 6
> 2001q2 06 P92786 IEMMM01 1 8
> 2001q2 06 P56576 IEMFF01 1 23
>
> [result]
>
> 2001q2 06 P92
On Fri, Nov 30, 2001 at 04:41:04PM -0600, Smith, Laura J wrote:
> I'm not sure how to ask this question since I am so new to thisbut here
> goes. I am just learning Perl and my co-worker gave me a Perl program to go
> over and see how it looks. I was wondering if there is any way to have the
On Tue, Dec 11, 2001 at 11:46:50AM -0700, [EMAIL PROTECTED] wrote:
> Hi,
> I'm guessing this has been asked before, but is there a way to tell which
> modules you have installed? My system guys are picky about new ones, so
> I would like to know what we already have...
The easiest thing to do is
On Tue, Dec 11, 2001 at 02:05:14PM -0800, Lance Prais wrote:
> I have a question and I was wondering if anyone had an opinion on it. I am
> using a perl script to parse through a log file and if there is an error
> found I need to send and email to someone..
>
> I was thinking about calling an A
On Tue, Dec 11, 2001 at 05:37:16PM -0500, Pankaj Warade wrote:
> GlacierHi Group,
> I had been working on generating graphic images (want to plot some graphs
> like pie-chart, bar-graph). Is there any-way of getting this done in perl.
> Came to know about GD module. Is there any other modules whic
On Thu, Jan 03, 2002 at 10:51:15AM -0500, David Simcik wrote:
> I am currently trying to piece together a personal site for myself using
> Perl, MySQL, and Apache (alas, no mod_perl yet). I would like to seamlessly
> deliver content to both HTML and WML browsers, perhaps even going as far as
> dep
On Tue, Feb 05, 2002 at 08:52:44AM -0700, Mike Garner wrote:
> I have a subroutine that calls another
> subroutine, passing one array to the second for processing. I need the
> second sub to return 3 arrays to the first sub. I can't seem to get this
> to workwell I can return the data fro
35 matches
Mail list logo