Re: context?

2008-03-22 Thread Joel
before the pipe. But this doesn't seem to be happening! like how in code: $a = 1, 2; 2 is discarded because comma has lower precedence than the assignment operator. Thanks, Joel On Mar 22, 1:10 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > Joel wrote: > >  > > > > > &g

Re: context?

2008-03-21 Thread Joel
(which have highest precedence because of parantheses) will execute first printing "13". (2) then the comma between fun(1) and fun 2 is evaluated, once this happens, is the list operation ( fun 2, fun(3) ) evaluated or is the comma between 2 and fun(3) evaluated? Thanks, Joel On Mar 20, 9:21 

Re: context?

2008-03-20 Thread Joel
esn't know that my_function is actually a function call when it doesn't see it predeclared.. I have another question, why are function calls without parantheses called list operators, is there no difference between the two? why isn't a function call with parantheses called a list

context?

2008-03-18 Thread Joel
it "bar" from the list.. why is this? Thanks, Joel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

rss read issue with non-encoded char

2006-03-18 Thread Joel CARNAT
Hi, I have written a small perl script that reads a few RSS flows and generate an HTML file. It seems one of them have non-ASCII character not encoded ; this make the script stop. *** perl script says *** not well-formed (invalid token) at line 90, column 63, byte 3936 at /usr/pkg/lib/perl5/vend

Update All Modules CPAN.pm

2005-12-19 Thread Joel Divekar
Hi Under CPAN when I run r command, I get the list of updatable modules. Is there any command to get all these modules auto updated. Thanks. Regards Joel Mumbai, India 9821421965 __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam

Validating Decimal Values

2005-11-30 Thread Joel Divekar
; } else { print "Invalid"; } *** or is there any perl module available to do validation of alpha, numeric and alphanumeric (with decimal) data type ? Thanks Regards Joel Mumbai, India 9821421965 ___

File Management

2005-07-22 Thread Joel Divekar
shell programming. Please advice. Thanks a lot. Regards Joel Mumbai, India 9821421965 Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Count special character

2005-05-24 Thread Joel Divekar
owing code works but I prefer to use chr(29) instead of ↔ my $count = ($a =~ tr/↔//); Please advice. Regards Joel Mumbai, India 9821421965 __ Do you Yahoo!? Make Yahoo! your home page http://www.yahoo.com/r/hs -- To unsubscribe, e-ma

Installing Downloaded Modules from CPAN

2005-04-05 Thread Joel Divekar
Hi All I am using Activestate Perl Ver 5.8.4 under Windows 2k and due to firewall I am not able to install packages using ppm / ppm3. I have checked following doc but no luck. Please advice. I am sorry if this point was discussed earlier. http://www.cpan.org/modules/INSTALL.html Regards Joel

Re: Send email to microsoft exhange distribution list

2005-02-18 Thread Joel Merrick
EMAIL PROTECTED] ? Yea, surely that's the easiest way? I don't know if you can do exchange-like RPC with Perl (probably!) :) > > If you can, you have lots and lots and lots of options. > > If you can't... I'm not even sure where to start with this... > > Ple

RE: replacing special chars

2005-02-03 Thread Stout, Joel R
Try this, and remember - with XML there are more than one you have to change: sub xc { #returns text free of XML baddies - xc = xml clean my $data = $_[0]; $data =~ s/&/&/g; $data =~ s//>/g; $data =~ s/'/'/g; $data =~ s/"/"/g; return $data; } -

RE: search engine for beginners.perl.org

2005-01-26 Thread Andrianoelison Joel
Hey, that's what we call "FAQ", isn't it? :-) Is there any FAQ for this mailing list? Thx Joel -Message d'origine- De : Vladimir Lemberg [mailto:[EMAIL PROTECTED] Envoye : mercredi 26 janvier 2005 01:08 A : Perl Beginners Objet : search engine for beginners.perl

RE: Trouble with compound regular expression matching

2004-12-07 Thread Stout, Joel R
I replied directly too - sorry. Why not use a module to help out? I think it's easier to read - but then again I'm no perl expert... use File::Basename; $fullname = "/usr/local/pics/sample.tiff"; #for example ($file,$dir,$_) = fileparse($fullname, qr/\..*/); if (/\.(tif|tiff|jpg|jpeg)$/) {

RE: time managing

2004-09-15 Thread Stout, Joel R
Microsoft Scheduler also sucks but not quite as bad as "at". I'd look into the Windows Cron first but you can also run a daemon (below). #your shebang use strict; use POSIX; # Start the loop for the daemon while(1) { my(@now) = localtime(); my($today) = POSIX::strftime( "%m

Help with Perl-SDL

2004-03-19 Thread Joel
e/lib/SDL/Build.pm line 4. Compilation failed in require at C:\Perl\site\lib\sdll\SDL_Perl-2.0.5\Build.PL l ine 7. BEGIN failed--compilation aborted at C:\Perl\site\lib\sdll\SDL_Perl-2.0.5\Build. PL line 7." Any suggestions? Thanks Joel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: hi!!

2004-03-05 Thread Joel
This is off topic, but is cygwin just the ports of GNU software for windows, or is it an actual command line interface that simulates linux? Joel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.

Re: perl hex editor

2004-03-04 Thread Joel
Thanks, that works perfectly. Now I just have to figure out how to turn it back into a valid file. I tried using "pack 'b*'" but I had no luck. Any suggestions? Joel - Original Message - From: "John W. Krahn" <[EMAIL PROTECTED]> To: <[EMAIL PROTEC

perl hex editor

2004-03-03 Thread Joel
quot;) || die "Unable to save: $!"; print SAVE 0b"$x"; close BINARY; close SAVE; Any ideas? Joel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Why did it print a happy face?

2004-03-03 Thread Joel
Keyboard symbols, greek letters, and weird things that look sort of like roads. I don't know about the driver or how I would find out. Joel - Original Message - From: "Rob Dixon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 03, 2004 1:02

Re: Why did it print a happy face?

2004-03-03 Thread Joel
card symbols. Any ideas? Joel #!/usr/bin/perl use warnings; use strict; my $h=15; my @word = (0x26A1, 0x2622, 0x2672, 0x2623, 0x2669, 0x266A, 0x266B, 0x266C, 0x266D, 0x266E, 0x266F, 0x262E, 0x262D, 0x263B, 0x260D); while ($h > 0) { $h--; my $letter=shift @word; p

Re: Why did it print a happy face?

2004-03-03 Thread Joel
I'm running windows XP actually. Joel - Original Message - From: "Rob Dixon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 02, 2004 1:35 PM Subject: Re: Why did it print a happy face? > Joel wrote: > > > > Thanks for

Re: Why did it print a happy face?

2004-03-02 Thread Joel
Thanks for explaining the while loop, but what I was wondering is why perl printed the happy face and heart in the first place? I was using ASCII Characters and there aren't any like that. Thanks Joel - Original Message - From: "Shaw, Matthew" <[EMAIL PROTECTED]&g

Why did it print a happy face?

2004-03-02 Thread Joel
output in perl. Any ideas? (By the way, I haven't fixed the while loop yet so be ready to quit fast to read the output.) Joel #!usr/bin/perl use Warnings; use Strict; my $h=4; my @word = (0x4E, 0x65, 0x72, 0x64); while ($h > 0) { $h++; $letter=shift @word; print chr(@word); } -- To uns

Re: Running a Perl script on windows xp

2004-02-29 Thread Joel
ories) and go to the path that the script is in by entering "cd c:\paththescriptisin". Then simply type "scriptname.pl" and it should run. Joel - Original Message - From: "Katia Kermanidis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, Fe

Re: Is there an etc. command in perl?

2004-02-26 Thread Joel
ed by everything between 1 and itself, and no modulus would be found. Any suggestions? Thanks Joel - Original Message - From: "David le Blanc" <[EMAIL PROTECTED]> To: "Joel" <[EMAIL PROTECTED]>; "Perl Lists" <[EMAIL PROTECTED]> Sent: Wednesday, F

Is there an etc. command in perl?

2004-02-25 Thread Joel
Is there an et cetera type command in perl? Specifically, what I want to do is to go from while (1) { my $num = shift @numarray; if ($num % 2==0) { and if the modulus of 2 is 0, find the modulus of 3 and so on. Can anyone give me some suggestions? Thanks, Joel -- To unsubscribe, e

RSS aggregator

2004-02-25 Thread Joel
How would I go about writing an RSS aggregator that would output to a text file? Joel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: cool project ideas

2004-02-24 Thread Joel
to buy the O'Reilly book "Spidering hacks", and the library doesn't have it) allthough i'm not sure my ISP allows it. I would also like to try writing client/server applications, but this time I know that my ISP doesn't allow you to run servers using it. Any suggestions?

Re: cool project ideas

2004-02-24 Thread Joel
Actually, I'm looking for more of a beginers project. Joel - Original Message - From: "WC -Sx- Jones" <[EMAIL PROTECTED]> To: "perl" <[EMAIL PROTECTED]> Sent: Tuesday, February 24, 2004 4:03 PM Subject: Re: cool project ideas > Joel wrote: &g

cool project ideas

2004-02-24 Thread Joel
I'm getting tired of working on a text adventure in perl, and I was wondering if anyone had some interesting projects they could suggest I attempt. Thanks, Joel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org

Does this site have cgi scripting errors?

2004-02-20 Thread Joel
http://www.wildglobe.com/ If everything seems fine, try refreshing the page a bit. I'm curious if that is what it is. Joel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Could I put commands in a variable

2004-02-20 Thread Joel
Thanks, can you give me some examples of loops like that? Joel - Original Message - From: "James Edward Gray II" <[EMAIL PROTECTED]> To: "Rob Dixon" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, February 20, 2004 12:36 PM Subject:

Re: Could I put commands in a variable

2004-02-20 Thread Joel
Thanks. What does "ne" mean? It's not listed in functions in the documentation. Joel - Original Message - From: "Daniel Staal" <[EMAIL PROTECTED]> To: "Perl Beginners" <[EMAIL PROTECTED]> Sent: Thursday, February 19, 2004 9:54 PM Subject:

Re: Could I put commands in a variable

2004-02-19 Thread Joel
Here it is. Okay so it isn't tommorow. I shortened it a bit, but its the same really. Joel - Original Message - From: "James Edward Gray II" <[EMAIL PROTECTED]> To: "Joel" <[EMAIL PROTECTED]> Sent: Thursday, February 19, 2004 3:06 PM Subject: R

Re: Could I put commands in a variable

2004-02-19 Thread Joel
I'll post the code tommorow. I just need to change all the room descriptions and items, since the the characters and places depicted in the game are copyrighted. I wrote it as a fan work. Joel - Original Message - From: "James Edward Gray II" <[EMAIL PROTECTED]&g

Re: Could I put commands in a variable

2004-02-19 Thread Joel
8:36 AM Subject: Re: Could I put commands in a variable > Joel wrote: > > > > If I was using one specific group of commands, Could I put them inside a > > variable, then just use the variable when I needed the commands instead of > > copying and pasting them? &

Could I put commands in a variable

2004-02-19 Thread Joel
s compared to $command = print "Hello world"; if ($i == 50) { goto MAIN; } elsif ($t == 100) { goto SECONDARY; }; Joel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Can anyone reccomend a good online perl tutorial

2004-02-18 Thread Joel
The subject says it all. Joel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Why does this keep happening?

2004-02-17 Thread Joel
I fixed the source code with the suggestions given, but still no luck. Any other ideas? Joel --- #!usr/bin/perl $abc=1000 until ($abc==0) { print "Counting down to 0 from $a\n"; $a--; } print "Blast off!"; -- To unsubscribe, e-ma

Re: Why does this keep happening?

2004-02-17 Thread Joel
Thanks, but what does "My" mean and why did you use "print" twice in a row? Joel - Original Message - From: "Dan Muey" <[EMAIL PROTECTED]> To: "Joel" <[EMAIL PROTECTED]>; "perl" <[EMAIL PROTECTED]> Sent: Tuesday,

Why does this keep happening?

2004-02-17 Thread Joel
ops in general. Any ideas? #!usr/bin/perl $a=1000 until ($a==0) { print "Counting down to 0 from $a"; $a--; } else (print "Blast off!") Joel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

I did it!

2004-02-01 Thread Joel
...)means?   Thanks   Joel <> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

I did it!

2004-02-01 Thread Joel
I wrote a decent, working program that actually does something semi-usefull!!! Check it out! You can find the area of a circle with it!   Joel PIr^2.pl Description: Binary data -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <h

RE: a little help please?

2004-01-31 Thread Joel
What I meant about the command prompt was "Are all the command prompts the same? Also, could running the Activeperl software damage my system at all since it is using a command prompt? Thanks, Joel > > Also, when I opened perl, it looked like the command prompt. Is the command

A little help please?

2004-01-30 Thread Joel
s the command prompt accesable through perl? Finally is the "#!usr/bin/perl line necessary under XP? Thanks Joel

Re: double-log-tail

2004-01-21 Thread Joel Newkirk
Cool, thanks - both look promising. j On Mon, 2004-01-19 at 14:47, Wiggins d'Anconia wrote: > Joel Newkirk wrote: > > I'm interested in tailing two logs (qmail) simultaneously, and > > interleaving the data in something approaching chronological sequence, > >

tai64 timestamp

2004-01-12 Thread Joel Newkirk
I'm trying to convert tai64 timestamps (qmail) to human-readable form. I installed DateTime::Format::Epoch::TAI64 and dependancies, and below is the latest mutation of a test program. The output lists the tai64 timestamp correctly, and the source IP ($src), but the converted time ($dt->hms) is 00

double-log-tail

2004-01-12 Thread Joel Newkirk
I'm interested in tailing two logs (qmail) simultaneously, and interleaving the data in something approaching chronological sequence, as well as dealing with logfile rotation gracefully. Any suggestions? j -- "Not all those who wander are lost." - JRR Tolkien -- To unsubscribe, e-mail: [EMA

Re: Split question

2003-12-15 Thread Joel Newkirk
On Sun, 2003-12-14 at 18:11, Joel Newkirk wrote: > > > > The first argument to split is converted to a regular expression and the > > '#' character is not special in a regular expression so split/#/ and > > split'\#' do exactly the same thing. >

Re: Split question

2003-12-14 Thread Joel Newkirk
On Sun, 2003-12-14 at 14:52, John W. Krahn wrote: > Josimar Nunes De Oliveira wrote: > > > > From: "Perl" <[EMAIL PROTECTED]> > > > > > > @temp = split(/#/, "abc#def#ghi#jkl") ; > > > > > > doesn't seem to work. > > > > > > am i doing anything wrong here ? > > > > Try this: > > > > @temp = spl

Re: help looping through text file

2003-12-13 Thread Joel Newkirk
On Fri, 2003-12-12 at 15:59, John Fitzgerald wrote: > I need a list set like this: > IDdate > 3008 11/1/03 > 3008 11/1/03 > 3008 11/1/03 > 3010 12/1/03 > 3010 12/1/03 > > So I need repeating ID's, with the earliest date for > each ID. If the order of the data is preserved, I can > use ju

Re: dbmopen problem - solved

2003-12-11 Thread Joel Newkirk
On Thu, 2003-12-11 at 14:06, drieux wrote: > On Dec 10, 2003, at 11:34 PM, Joel Newkirk wrote: > [..] > > I found my problem - apparently webmin was doing "use GDBM_File;" for > > me, which is why it worked in the webmin module, and since I wasn't > > i

Re: dbmopen problem

2003-12-11 Thread Joel Newkirk
On Wed, 2003-12-10 at 22:11, drieux wrote: > On Dec 10, 2003, at 5:58 PM, Joel Newkirk wrote: > [..] > >> whenever I reach: > >> dbmopen (%PLRULES, "/var/szs/rules.dbm", undef) or die $!; > >> I die, with "No such file or directory". > [

Re: dbmopen problem

2003-12-11 Thread Joel Newkirk
On Wed, 2003-12-10 at 22:07, Owen wrote: > On Mon, 08 Dec 2003 01:06:04 -0500 > Joel Newkirk <[EMAIL PROTECTED]> wrote: > > > dbmopen (%PLRULES, "/var/szs/rules.dbm", undef) or die $!; > > I die, with "No such file or directory". > > No idea b

Re: dbmopen problem - solved

2003-12-11 Thread Joel Newkirk
On Wed, 2003-12-10 at 20:58, Joel Newkirk wrote: > On Mon, 2003-12-08 at 01:06, Joel Newkirk wrote: > > Now I'm working on a console command to offer the same functionality > > (only needing to read the rules, not write) using the same dbm. I've > > used precisel

Re: dbmopen problem

2003-12-10 Thread Joel Newkirk
Well, I guess I'll reply since nobody else has... Problem is I still have no clue what's wrong here... :^) Surely somebody here can offer a hint? Please? :^) j On Mon, 2003-12-08 at 01:06, Joel Newkirk wrote: > I've run into a problem. I have been working on a webmin mo

dbmopen problem

2003-12-07 Thread Joel Newkirk
I've run into a problem. I have been working on a webmin module that, among other things, maintains a dbm file of regular expressions. One subroutine is passed a string, and if any of the regular expressions matches, it returns the associated explanation text. I can read and write this dbm with n

(OT) RE: Microsoft Word Creation // CSS

2003-10-07 Thread Stout, Joel R
:italic; } H3 { color:blue; font-family:Garamond; font-size:30pt; font-style:italic; } --> Help Help Help -Original Message- From: John [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 8:53 AM To: Stout, Joel R; Perl Beginners Subject: Re: Microsoft Word Creation

RE: Microsoft Word Creation

2003-10-07 Thread Stout, Joel R
as a doc file (though the first option will be to save it as a htm file). Joel -Original Message- From: John [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 8:16 AM To: Perl Beginners Subject: Microsoft Word Creation I want to create a doc file that will contain my text,

RE: trying out examples in Oreilly's Perl Graphics Programming

2003-07-17 Thread Joel Lopez
ing that line. Is there some setting that I didn't set or is this normal for a default install of perl on RH 8? Thanks again, Joel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 1:59 PM To: Joel Lopez; [EMAIL PROTECTED] Subject: RE

RE: trying out examples in Oreilly's Perl Graphics Programming

2003-07-16 Thread Joel Lopez
age->stringFT($black, "/home/shawn/arial.ttf", 48, 0, 40, 120, "Hello World"); Is this where the image is read from or created to? The book site doesn't give an image to work with. thanks for helping a lost man, Joel -Original Message- From: [EMAIL PROTECTED]

trying out examples in Oreilly's Perl Graphics Programming

2003-07-16 Thread Joel Lopez
ermxtermxtermxtermxtermxtermxtermxterm I first typed it in, but then after I couldn't get it to work I copied and pasted it into a file. I'm using Red Hat 8 and have updated the libgd C library to version 1.8.4 and then used cpan to install GD. I ran the demo for libgd and it made the graphic it was supposed to so I think it's working ok. Is there anyway to find out if everything is installed correctly? thanks, Joel

RE: Help!!!

2003-01-07 Thread Joel Biss
In windows you can use /Start/Programs/Accessories/System Tools/Scheduled Tasks or 'at' from the cmd prompt to schedule your perl program to run every minute or so. -Original Message- From: Paul Kraus [mailto:[EMAIL PROTECTED]] Sent: 06 January 2003 16:46 To: 'George Schlossnagle'; [E

RE: Perl on-line books

2002-07-22 Thread Stout, Joel R
I would check to see if this copy is legal before sending out the link again. ~Some~ Russian sites put pirated copies of books online. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: scheduler question - newbie script

2002-05-29 Thread Stout, Joel R
Depending on how long the job takes, this little script runs about every 10 seconds. If you want to be more exact I think you'll have to fork. #!/usr/bin/perl -w use strict; use POSIX; # Start the loop for the daemon while(1) { my(@now) = localtime(); my($today) = POSIX::str

[OT] Regional bragging was RE: Fixing the Quality of our OldBies was Re: GoryDetails on: err or log message

2002-04-29 Thread Stout, Joel R
Easy for you to say...you don't live in Portland where we have the finest beer in the world. :) J -Original Message- From: Timothy Johnson [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 9:53 AM To: '[EMAIL PROTECTED]' Subject: RE: Fixing the Quality of our OldBies was Re: GoryD

RE: http headers

2002-04-23 Thread Joel Hughes
Conan, HTTP::Headers I think is what your after http://search.cpan.org/search?mode=module&query=http regards Joel -Original Message- From: Conan Chai [mailto:[EMAIL PROTECTED]] Sent: 24 April 2002 05:08 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: http headers hi, are t

RE: RegEx question

2002-04-23 Thread Stout, Joel R
Just translates your "+" to " ". my ($key); $key = "one two three+four"; $key =~ tr/+/ /; print "$key\n"; one two three four -Original Message- From: Ron [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 11:18 AM To: [EMAIL PROTECTED] Subject: RegEx question I have been usi

RE: Incrementing the letters in an array

2002-04-18 Thread Stout, Joel R
Adding one and incrementing are different. You're adding 1. Did you try incrementing the character? Instead of this: $code[$y]=$code[$y]+1; try ($code[$y])++; #!/usr/bin/perl @code = qw( A B C D ); $y = 0; if( $code[$y] ne "F" ){ print "$code[$y]\n"; ($code[$y])++; print "$code[$y]\n"

RE: Firewall

2002-04-18 Thread Joel Hughes
to say there is no firewall. NMAP would probably be a better option joel -Original Message- From: Fred Sahakian [mailto:[EMAIL PROTECTED]] Sent: 17 April 2002 20:37 To: >; > Subject: Firewall Anyone know of a perl script that can determine if a website is actually behind a firewa

Install question XML::SimpleObject

2002-04-04 Thread Stout, Joel R
e a way to only install XML::SimpleObject? I do not remember going through this before. Thanks for any help, Joel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: string indexing

2002-03-04 Thread Stout, Joel R
#!/usr/bin/perl -w my $x = "abcd"; print substr($x,3,1); from perldoc perlfunc: substr EXPR,OFFSET,LENGTH,REPLACEMENT substr EXPR,OFFSET,LENGTH substr EXPR,OFFSET Extracts a substring out of EXPR and returns it. First character is at offset `0', or whatever you've set `$['

RE: network file directories and directory names with spaces

2002-02-28 Thread Stout, Joel R
again with all the backslashes... This works on windows: opendir(DIR,"C:/program files"); my @files = readdir(DIR); print @files; J:) > -Original Message- > From: Timothy Johnson [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 28, 2002 12:58 PM > To: 'Eric Peers'; [EMAIL PROTECTE

RE: Storing Newsletter in Database

2002-02-19 Thread Stout, Joel R
Any thought to storing links to the docs in a db rather than the data itself, maybe with some keywords you can search on? Joel Headline- Apathy Runs Rampant; But Noone Seems to Care > -Original Message- > From: Timothy Johnson [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, Fe

RE: can't print input argument

2002-02-12 Thread Stout, Joel R
try: perl program.pl file.txt and then check $ARGV[0] It should contain "file.txt". I've dealt with this before using Windows and line args. Anyone more experienced (Jenda?) can help out more. J > -Original Message- > From: Wagner-David [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, Fe

RE: PERL and XML Parser

2002-02-01 Thread Stout, Joel R
Reggae Peter Tosh Percy Reggae Percy Gone Jazz Percy Reggae Yes Percy (owner) is repeated and so is the category, but it makes it a little easier to add another album to your file: Napalm Death Joel

RE: int()

2002-01-17 Thread Stout, Joel R
>From previous post: $q = int( $p ); # goes towards zero $r = ceil( $p );# goes to next highest integer $s = floor( $p ); # goes to next lowest integer > -Original Message- > From: Naveen Parmar [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 17, 2002 2:15 PM > To: [

RE: Help with clearing an array

2002-01-14 Thread Stout, Joel R
perldoc perldata says for clearing arrays: @array = (); or... $#array = -1; > -Original Message- > From: Leon [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 15, 2002 8:19 AM > To: [EMAIL PROTECTED] > Subject: Re: Help with clearing an array > > > - Original Message - >

RE: deleting lines in file

2002-01-14 Thread Stout, Joel R
Got this from a merlyn post, while () { next if 1..10; print OUT_FILE $_; } > -Original Message- > From: Cabezon Aurélien [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 14, 2002 12:56 PM > To: [EMAIL PROTECTED] > Subject: deleting lines in file > > > hi, > i wonder how to dele

RE: interesting JAPH, how does this work?

2002-01-10 Thread Stout, Joel R
Readability wasn't a concern with making this obfu. I did want to show that it worked with "use strict;" so I put that on a seperate line. Original Monks post below. Joel Calaban on Monks #!c:\perl\perl.exe -w use strict; my $A="a";for(0..285074){$A++;}print"$

RE: perl sleep

2002-01-07 Thread Stout, Joel R
Also since my production box is my pc (ack) I don't have a MS Window popping up every 5 minutes like you will have with the scheduler. Hope this helps... Joel > -Original Message- > From: Scott [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 07, 2002 10:44 AM > T

RE: EXCEL automation

2002-01-07 Thread Stout, Joel R
Not sure, but if you go to Window -> Unhide you can see that the book was created successfully. Maybe a Win32 Perl Guru can help more. Joel > -Original Message- > From: Billie [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 07, 2002 7:15 AM > To: [EMAIL PROTECTED] &

RE: Happy New Yr Y2K+2 =) Spliting Question

2002-01-03 Thread Stout, Joel R
$a = "1234:4321;abcde;fghij::;klmno"; @dataLine = split(/;/, $a, 2); ($x, $y) = split (/:/, $dataLine[0]); print "x: $x\n"; print "y: $y\n"; print "rest: $dataLine[1]\n"; see split in perldoc perlfunc > -Original Message- > From: Curtis Poe [mailto:[EMAIL PROTECTED]] > Sent: Thursday,

RE: Array Length.

2001-12-17 Thread Stout, Joel R
Assigning the array to a scalar will give you a count: push ( @initial_array, qw( apple orange bananna )); $a = @initial_array; print $a; prints 3 -Original Message- From: Ryan Guy [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 12:24 PM To: '[EMAIL PROTECTED]' Subject: Array

Re: Converting numbers into date format

2001-12-04 Thread Joel Divekar
Hi use POSIX Regards Joel At 11:54 AM 12/4/2001 +0330, nafiseh saberi wrote: >hi >you can do it with >gmtime >localtime >and many time function in... >http://www.perldoc.com/perl5.6/pod/func/gmtime.html >http://www.perldoc.com/perl5.6/pod/func/localtime.html >be succes

RE: Send e-mail attachment // A little help and a little help

2001-11-27 Thread Stout, Joel R
I'm still a real beginner and think Mail::Sender is about as easy as it gets... Since the subject has been brought up, pls take a look at my simple sub for emailing files. I know this code works but can be improved. I send the file name(s) to be attached, a file name for the message text, and

Re: Off-Topic (200%) - Where are you from?

2001-11-09 Thread Joel Divekar
Hi I am from Mumbai, India Working for a software firm. God only knows how long my company will survive ... Feeling the pain of recession ... Perl Monk on www.perlmonk.org (Jamnet) Have a 9+ years experience Looking for a good job... Ready to relocate Regards Joel At 03:56 PM 11/9

RE: Off-Topic (200%) - Where are you from?

2001-11-09 Thread Stout, Joel R
Portland, Oregon -Original Message- From: Etienne Marcotte [mailto:[EMAIL PROTECTED]] Sent: Friday, November 09, 2001 7:08 AM To: [EMAIL PROTECTED] Subject: Off-Topic (200%) - Where are you from? By reading the messages everyday I can guess most of us are from United States right? And

RE: Running application

2001-10-22 Thread Stout, Joel R
or.. system("C:\\WINNT\\notepad.exe"); system("C:/WINNT/notepad.exe"); same on my box and I save myself that extra typing :) -Original Message- From: Busse, Rich [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 11:08 AM To: Perl Beginners Subject: FW: Running application Watch

RE: Fraction to integer.

2001-10-18 Thread Stout, Joel R
int will go towards zero... #!/usr/bin/perl -w my ($p, $q, $r, $s, $t); use POSIX; use strict; $p = rand( 100 ); # random number between 0 and 100 $q = int( $p ); # goes towards zero $r = ceil( $p );# goes to next highest integer $s = floor( $p ); # goes to next lowest inte

RE: Periodic Auto Start

2001-10-04 Thread Stout, Joel R
g file entry into my script. Joel -Original Message- From: Gibbs Tanton - tgibbs [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 11:04 AM To: 'Eric Wang '; '[EMAIL PROTECTED] ' Subject: RE: Periodic Auto Start If you are on a unix system you can use

Re: Where does Makefile.PL pick up include paths from?

2001-09-19 Thread Joel Divekar
# IP of proxy server along with the port no set HTTP_proxy_user=joel # Login name if required set HTTP_proxy_pass=a # password then run PPM This should solve your problem Hey Reg do let me know if it helped you OK Regards Joel At 11:48 AM 9/19/2001

SMTO Socket Connection

2001-08-12 Thread Joel Divekar
=== #!/usr/bin/perl -w # use packages use strict; use IO::Socket; # Data Variables my ($SMTP_Server) = "10.10.10.10"; my ($SMTP_Port) = "25"; my ($CR) = "\r\n"; my $Socket; # Mail Related Data my $from = "joel\@testlinux.net"; my $to = &quo

Re: is it possible?

2001-07-31 Thread Joel Divekar
Hi Rahul I am sorry to say that we always see you coming up with questions and no efforts from you end. Either you are used to spoon feeding or just want to get things done for free. This will not help you as well as the list in the long run. Thanks for your co-operation Regards Joel

RE: PDF's on the fly... // Article "A Simple Approach to PDF"

2001-07-20 Thread Stout, Joel R
Here's an article I found a while back on creating PDF from HTML with Perl. Probably not exactly what you're looking for: http://www.stars.com/Authoring/Languages/Perl/PerlfortheWeb/index16.html Joel *You know you're bored when... my $a = ""; for (0..2667

Re: Activestate installation

2001-07-17 Thread Joel Divekar
Hi Debashis I have a same setup at home. Add perl installation path in your autoexec.bat file if not done automatically. I don't think you need to configure anything more if you are using new perl releases Regards Joel At 03:45 PM 7/17/2001 +0100, debashis rana (JIC) wrote: >

Re: PARSING

2001-07-17 Thread Joel Divekar
Hi Rahul Show what attempts you have done before asking for help ok ... how do you plan to grow. Anyway this is what you are looking for $string ="rahul;john;hary;brian;raj;dolly;jim;"; my @a = split(/;/, $string); foreach $item (@a) { print "$item\n"; } Regard

Re: ActivePerl - how does one configure for HTML

2001-07-17 Thread Joel Divekar
Hi Scott I was having sleepless nights because of the same problem I tried whatever I could, tried configuring PWS it didn't work surely will check the link. One right solution can help many more lives Thanks a lot Regards Joel At 08:09 PM 7/17/2001 +1000, you wrote: > &

RE: ActivePerl - how does one configure for HTML

2001-07-16 Thread Stout, Joel R
;t be of more help - just learning myself. Joel -Original Message- From: Brett W. McCoy [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 1:07 PM To: Christopher Williams Cc: [EMAIL PROTECTED] Subject: Re: ActivePerl - how does one configure for HTML On Mon, 16 Jul 2001, Christo

  1   2   >