RE: Learning Perl

2003-04-02 Thread Ramón Chávez
Try purchasing a Book. O'Reilly would be good.

After that you can go to :   http://cgi.resourceindex.com
and download some free scripts and try them.

You may try some tutorials on the web, but it's very important (at least in
my experience) that you first begin with the hard introduction. After that
you can explore the sweetness of this languaje.

-rm-



- Original Message -
From: Ohad Ohad <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 02, 2003 1:31 AM
Subject: Learning Perl


> hey,
>
> I guess this question came up several time already so a link will be fine.
>
> What is the best way to learn Perl for someone with very basic programming
> skills.
>
> 10x
>
> Ohad.
>
> _
> Protect your PC - get McAfee.com VirusScan Online
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Enumerating available modules

2003-03-31 Thread Ramón Chávez
Try PERLDIVER

http://www.scriptsolutions.com/programs/free/perldiver/

It helped me a lot.
It'll show you all the modules installed on your system.

Just Install, and run.


- Original Message - 
From: Steve Gilbert <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 28, 2003 11:28 AM
Subject: Enumerating available modules


> Does anyone know of a way to enumerate all the
> available modules on a system?
> 
> TIA
> Steve
> 
> __
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> http://platinum.yahoo.com
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: hello

2003-03-31 Thread Ramón Chávez
I started with a book. Don't think the name could be useful for you 'cause
it's in spanish. But  I'm pretty sure "Learning Perl" will do the Job.
Don't skip the very basic... 8-)

After that try to install some free scripts and see how they work.

-rm-
- Original Message -
From: Todd <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 27, 2003 8:34 PM
Subject: hello


> Hello everyone,
>
> I imagine you see emails like this frequently, but I am looking for some
> tips. I'd like to know some good technics for beginners to perl, and what
> steps they should take to get involved and start to understand the basic
> concepts of perl, if anyone could reply with how they started learning
perl,
> it would be much appreciated. I know it's not a very hard language to
learn,
> or so I was told, but I'd like to know the best way to approach learning
it.
>
> Thanks,
>
> Todd Sommer
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: javascript and perl dbi

2003-03-26 Thread Ramón Chávez
Hope I'm not missing the context of the question :-o

--

You can include Javascript as any HTML code

print "\n";
print "   var SealoffSource = true\; /* Deshabilitar Click
Derecho. */\n";
print " function click() {if (event.button==2)
{alert(\'Hardware: Mouse - Error. Please reboot.\')}}\n";
print "document.onmousedown=click\;\n";
print "\n";

Just be careful to not miss a backslash.

Or, as Dan said, use Here Documents.
I've found some details here:
http://www.perldoc.com/perl5.8.0/pod/perlfaq4.html#Why-don't-my-%3c%3cHERE-d
ocuments-work-

-rm-

- Original Message -
From: Dan Muey <[EMAIL PROTECTED]>
To: Robbie Staufer <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, March 26, 2003 1:03 PM
Subject: RE: javascript and perl dbi



Please post to the list so everyone can play.

>Dear Dan,
>
>Like you, I think that perl can do everything php can do, and more.  I'm in
the learning stages, so don't know alot about >either, but I've used both a
few times.

>So taking your advice, I have a perl script that will eventually do
everything I need.  But I don't know how to place the >java script inside
the perl script.  For example, in html, I just put the java script in the
 area, and again in the >body wherever I want the interactive menus to
appear.

>But in perl, if I use print $query->start_html('BMDB Query Form');

If that finction won't do what you need then don't use it.

See search.cpan.org and look for CGI.pm there's lots of info there.

You could use a 'here' doc.

print <

javascript...


...
HTML

Just watch out for your quotes and backslash them if need be.

DMuey


>there's no  tag to house the java script.  So I don't know where to
put it.

>I hope I explained my question clearly.  Can you show me an example of how
it should look?

>Many thanks,
>Robbie

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: INFO PLEASE

2003-03-26 Thread Ramón Chávez
Try PERLDIVER

http://www.scriptsolutions.com/programs/free/perldiver/

It helped me a lot.
It'll show you all the modules installed on your system.

Just Install, and run.

-rm-
- Original Message -
From: Eric Walker <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 26, 2003 12:04 PM
Subject: INFO PLEASE


> how can I see where modules are installed no matter if they are personal
or come with perl
> also how can I tell what functions are available for them.
> Thanks
>
>






> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: print <

2003-03-26 Thread Ramón Chávez
Thank you Stefan
-rm-
- Original Message -
From: Stefan Lidman <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 26, 2003 10:07 AM
Subject: Re: print < Ramón Chávez wrote:
> >
> > Hello boys and girls.
> >
> > I have sen this kind of expression:
> >
> > -
> > print < > ## Some HTML  here
> > EOF
> > ---
>
> they are called "here documents"
> perldoc -q "here documents"
>
>
> /Stefan
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Password protected script.

2003-03-26 Thread Ramón Chávez
Hello again.
I'm trying to write a script for uploading some files, but I want it to be password 
protected, giving this way restricted acces to some users.
I don't want to set a password for the directory where the script lies on, I'd prefeer 
the protection beeing inside the script.

I am asking you for some advises on how to do this.  8-)
Any Idea on how to drive this task will be very appreciated.



print <

2003-03-26 Thread Ramón Chávez
Hello boys and girls.

I have sen this kind of expression:

-
print <

RE: perl code in browser window

2003-03-26 Thread Ramón Chávez
I've never had that problem, but maybe you should put your script in the
CGI-BIN directory. If you haven't yet.
If you're using SSI, you may check the command:


Don't have for sure, but maybe this

 (Or something like that)

could produce a problem like yours.

-rm-


- Original Message -
From: Robbie Staufer <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 26, 2003 9:48 AM
Subject: perl code in browser window


> Hi,
>
> Has anyone had this problem?  I have a perl script that produces an html
> form among other things, and when I open it in the browser window, all
> of the perl coding shows up along with the html form.  I've never had
> this problem before.  Does anyone know what causes it?
>
> Thanks,
> Robbie
>
> --
> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
> Robbie Staufer
> NCAR/SCD
> 1850 Table Mesa Dr. Rm. 42
> Boulder, CO. 80305
> (303) 497-1836
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Help with script , error 500

2003-03-18 Thread Ramón Chávez
Tanx

I'll use it.
- Original Message -
From: Scott R. Godin <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 18, 2003 1:37 PM
Subject: RE: Help with script , error 500


Rgíón «hávkú wrote:

> I wanna say Thank you to all of you.
> Rob: I wouldn't have found that unescaped double quote.
> Thanx for all your comments.
> I've found the very answer on line 6
>
> I had
>  $bd = imagenes.dat;
>
> ans it must be
>$bd = "imdat";agenes.
> Everything OK now. After a good sleep night ..
>
> c u
> -rm-
>
>
>
>
> - Original Message -
> From: R. Joseph Newton <[EMAIL PROTECTED]>
> To: Ramón Chávez <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Monday, March 17, 2003 5:41 PM
> Subject: Re: Help with script , error 500
>
>
>> Ramón Chávez wrote:
>>
>> > Hello everyone.
>>
>> Hi Ramon,
>>  I think I see your problem right here:
>>
>> >print "content-type: text/html \n\n";
>>
>> Should be:
>> print "Content-type: text/html\n\n";
>> I can't say that that is the only problem, but that probably would be
> enough  to hang the process.  Try changing that, then see what results you
> get.

would have found it faster if you did

   #!/usr/bin/perl
   use warnings;
   use strict;

at the top of all your programs.

>$ perl -Mwarnings -Mstrict -e '$bd = imagenes.dat;'
Global symbol "$bd" requires explicit package name at -e line 1.
Bareword "imagenes" not allowed while "strict subs" in use at -e line 1.
Bareword "dat" not allowed while "strict subs" in use at -e line 1.
Execution of -e aborted due to compilation errors.



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Help with script , error 500

2003-03-18 Thread Ramón Chávez
I wanna say Thank you to all of you.
Rob: I wouldn't have found that unescaped double quote.
Thanx for all your comments.
I've found the very answer on line 6

I had
 $bd = imagenes.dat;

ans it must be
   $bd = "imagenes.dat";
Everything OK now. After a good sleep night ..

c u
-rm-




- Original Message -
From: R. Joseph Newton <[EMAIL PROTECTED]>
To: Ramón Chávez <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, March 17, 2003 5:41 PM
Subject: Re: Help with script , error 500


> Ramón Chávez wrote:
>
> > Hello everyone.
>
> Hi Ramon,
>  I think I see your problem right here:
>
> >print "content-type: text/html \n\n";
>
> Should be:
> print "Content-type: text/html\n\n";
> I can't say that that is the only problem, but that probably would be
enough  to hang the process.  Try changing that, then see what results you
get.
>
> Joseph
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Help with script , error 500

2003-03-17 Thread Ramón Chávez
Hello everyone.

I have a problem that has me blinded. I'm working on a script for finding
the 3 greatest numbers on a group of data stored in a TXT file.

I keep getting the same 500 error.
I used some pieces of code from others scripts I made that work correctly,
but this is my headache. Maybe is a syntax error, but I am so tired of
looking for it. So I ask you to help me tracking the mistake in this script.

Thank you to all of you for taking the time

imagenes.dat is stored in the same directory that the script.
---CODE
#!/usr/bin/perl

$file_url = "http://www.sistemedic.com/votar";;

$bd = imagenes.dat;

   open (DATOS, "$bd") || die "Error: no se puede abrir el archivo";

   while () {
  $reg = $_;
  ($file, $vot_tot, $sum_vot, $coment, $prop) = split(/\|/,$reg);
  $prom = $sum_vot / $vot_tot;
  $ltop{$file} = $prom;
   }
   close (DATOS);

#   @proms = values (%ltop);
   @images = keys (%ltop);

   $ind=0;
   $max_1=0;
   $max_2=0;
   $max_3=0;

   foreach $comp (values(%ltop)){
  if ($comp > $max_1) {
 $max_1 = $comp;
 $ind_1 = $ind;
  }elsif ($comp > $max_2){
 $max_2 = $comp;
 $ind_2 = $ind;
  }elsif ($comp > $max_3){
 $max_3 = $comp;
 $ind_3 = $ind;
  }else{
 $ind = $ind;
  }
  $ind ++;
   }

   $prom_1 = sprintf '%3.2f', $max_1;
   $prom_2 = sprintf '%3.2f', $max_2;
   $prom_3 = sprintf '%3.2f', $max_3;

   print "content-type: text/html \n\n";
   print "\n\n";
   print "Top 3\n";
   print "\n";
   print "\n";
   print "   \n";
   print "\n";
   print "  $prom_1\n";
   print "\n";
   print "  $prom_2\n";
   print "\n";
   print "  $prom_3\n";
   print "  \n";
   print "\n";
   print "\n";

exit;
-

As you can see I have made some weird arrangements, trying to find out the
error.

-rm-



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: apache error

2003-03-14 Thread Ramón Chávez
Be sure you are using the correct path to PERL on your system.

#!/usr/bin/perl

or

#!/usr/local/bin/perl

-rm-

- Original Message -
From: Francesco del Vecchio <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 14, 2003 10:58 AM
Subject: RE: apache error


> Sorry for boring you, but even copying and pasting the source you gave me
I obtain the same error
> :-((
>
> Any help?
>
> Francesco
> --- Bob Showalter <[EMAIL PROTECTED]> wrote:
> > Francesco del Vecchio wrote:
> > > I'm new to apache and linux.
> > >
> > > I'm trying to run the "Hello World" cgi that works perfectly
> > > from terminal but via WebServer I
> > > obtain this error:
> > >
> > > [Fri Mar 14 17:03:11 2003] [error] [client 127.0.0.1]
> > > Premature end of script headers: hello.pl
> > >
> > > Do you have any idea about it?
> > >
> > > the source is the following
> > >
> > > #!/usr/bin/perl -w
> > > print ("ciao\n");
> >
> > A CGI script needs to output a MIME header. At a bare minimum, you need
to
> > add the following:
> >
> >print "Content-Type: text/plain\r\n\r\n",
> >"ciao\n";
> >
> > There are two \r\n pairs there because the header must end with a blank
> > line.
> >
> > To do this with the CGI module (recommended), use:
> >
> >#!/usr/bin/perl -w
> >
> >use CGI ':standard';
> >
> >print header('text/plain'),
> >"ciao\n";
> >
> > If you want to output HTML instead of plain text, do something like
this:
> >
> > #!/usr/bin/perl -w
> >
> > use CGI ':standard';
> >
> > print header,
> > start_html('Ciao'),
> > p('ciao'),
> > end_html;
>
>
> __
> Do you Yahoo!?
> Yahoo! Web Hosting - establish your business online
> http://webhosting.yahoo.com
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: apache error

2003-03-14 Thread Ramón Chávez
#!/usr/bin/perl -w
print "content-type: text/html \n\n";
print "\n";
print "ciao\n";
print "\n;

-
Don't forget you need to print the header:

print "content-type: text/html \n\n";

-rm-



- Original Message -
From: Francesco del Vecchio <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 14, 2003 10:28 AM
Subject: RE: apache error


> sorry David,
>
> can you post an "hello world" cgi working?
>
> I was using INDIGO PERL on win and that script work on that system.
>
> Francesco
>
>
> --- David Olbersen <[EMAIL PROTECTED]> wrote:
> > Francesco,
> >
> > That's not a complete CGI script -- it's missing quite a few headers.
> >
> > I'd suggest reading up on the CGI module. You can get information about
it at
> > http://search.cpan.org. To be fair this has very little to do with
apache, and quite a bit to do
> > with your script.
> >
> > --
> > David Olbersen
> > iGuard Engineer
> > 11415 West Bernardo Court
> > San Diego, CA 92127
> > 1-858-676-2277 x2152
> >
> >
> > > -Original Message-
> > > From: Francesco del Vecchio [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, March 14, 2003 8:16 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: apache error
> > >
> > >
> > > I'm new to apache and linux.
> > >
> > > I'm trying to run the "Hello World" cgi that works perfectly
> > > from terminal but via WebServer I
> > > obtain this error:
> > >
> > > [Fri Mar 14 17:03:11 2003] [error] [client 127.0.0.1]
> > > Premature end of script headers: hello.pl
> > >
> > > Do you have any idea about it?
> > >
> > > the source is the following
> > >
> > > #!/usr/bin/perl -w
> > > print ("ciao\n");
> > >
> > > tnx
> > > Francesco
> > >
> > > __
> > > Do you Yahoo!?
> > > Yahoo! Web Hosting - establish your business online
> > > http://webhosting.yahoo.com
> > >
> > > --
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> __
> Do you Yahoo!?
> Yahoo! Web Hosting - establish your business online
> http://webhosting.yahoo.com
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Use of SSI

2003-03-13 Thread Ramón Chávez
I'm trying to use a Script for showing who's online on my site.

I have been using it on the main page, but I want it to look for somebody
who could have get in the site trhough anoter page.

The matter is I need to use SSI for calling the script.

To look on the entire site I need to use SSI on every pages. This means
change from .HTML to .SHTML (I need to do that with my host).

What are the inconveniences of having all my pages as .SHTML???

I know the server will make a scan (or something like that ) on every .SHTML
page, making them a little slower to load.

Can this be annoying for the surfer???

How does the size of the .HTML file affects???.

---
It may sound off topic, but at last it's for keep using PERL the best way on
my site ..   ;-)
Thanks everybody.
-rm-


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: cookie help needed

2003-03-04 Thread Ramón Chávez
For IE go to C:\WINDOWS\Cookies

-rm-


- Original Message -
From: Dan Muey <[EMAIL PROTECTED]>
To: Anadi Taylor <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, March 04, 2003 1:27 PM
Subject: RE: cookie help needed



>
> sorry to bug ya about this - 1st it was a scope problem - but
> something you
> said here intregues me:
>
> >Two ways to test
> >1) have your script print the value of $membusrname
> >2) look in your cookies and see if it's there
>
> How do I look @ my cookies ??

I use Netscape 7. I just go to Tools->Cookie Manager->Manage Stored Cookies
Not sure about IE but you can always just find the directory it stores them
in and
Look at them in a text editor.

>
> Sorry to be a pain

No pain, no gain!! ;p

>
> Anadi
>
> _
> Use MSN Messenger to send music and pics to your friends
> http://messenger.msn.co.uk
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



File Uploading SCRIPT

2003-03-03 Thread Ramón Chávez
Hello everyone.

I'm trying to write a script for Uploading pictures.

Can you give me some advice??
What module to look at first??

Thank you.

-rm-



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: image property testing... take II

2003-02-28 Thread Ramón Chávez
I don't know much about the problem you are asking for.
But it seems to me that you're wrong when calling the subroutine wanted.

 # File::Find wanted function
 sub wanted;

It must be:

 # File::Find wanted function
&wanted;

Shouldn't it???
-rm-




- Original Message - 
From: Shawn Wilson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 27, 2003 11:06 AM
Subject: image property testing... take II


> ok, i have cleaned up the code, and fixed all of the mistakes that i can 
> find, but i still can't get this tying to compile and run. and, my code 
> surely isn't written stout enough to handle a 'use strict'. if someone 
> could tell me what i am STILL doing wrong i'd appreciate it. The Code:
> 
> #!/usr/bin/perl
> 
> use warnings;
> # use strict;
> use File::Find;
> use File::Remove qw(remove);
> use Image::Info qw(image_info);
> use File::Scan;
> 
> # File::Find wanted function
> sub wanted;
> 
> # variables
> our ( $file, $dir );
> *file = *File::Find::name;
> *dir = *File::Find::dir;
> 
> 
> print "Where are the pictures/?";
> chomp( my $indir =  );
> 
> File::Find::find(\&wanted, '$indir');
> exit;
> 
> sub wanted {
> unless ($file =~ /\.jpg\z/ or
> $file =~ /\.tif\z/ or
> $file =~ /\.bmp\z/ or
> $file =~ /\.png\z/ ) { # delete every file exept listed image types.
> remove $file;
> }
> else {
> my $info = image_info(\$file); # the attributes of the image file
> $type = $info->(file_ext); # three letter image type
> $w = $info->(width); # pixel width
> $h = $info->(height); # pixel height
> $color = $info->(color_type) # color type
> # delete small images
> if( ($w < 200 and $h < 400) or ($w < 400 and $h < 200) ) {
> remove $file;
> }
> # delete images that try to be a different type from what they say
> if ($type ne 'bmp' or
> $type ne 'jpg' or
> $type ne 'png' or
> $type ne 'tif') {
> remove $file;
> }
> # delete all gray scale images
> if ($color ne 'Gray' or
> $color ne'GrayA') {
> remove $file;
> }
> # check images for viruses
> if ($scanres->scan(\$file) ) {
> if( $scanres->suspicious) {
> print "$file looks like it has a virus, delete/? /(Y//N/)";
> remove $file if  =~ /y|Y/;
> }
> }
> }
> }
> 
> 
> 
> . and the errors:
> 
> Unquoted string "width" may clash with future reserved word at 
> ./bigimg2.pl line 35.
> Unquoted string "height" may clash with future reserved word at 
> ./bigimg2.pl line 36.
> syntax error at ./bigimg2.pl line 39, near ") {"
> syntax error at ./bigimg2.pl line 62, near "}"
> Execution of ./bigimg2.pl aborted due to compilation errors.
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Get list of available modules?

2003-02-25 Thread Ramón Chávez
Rob:

You may try PERDIVER.

Its very simple and quite useful.

You can download from here

http://www.scriptsolutions.com/programs/free/perldiver/

Just upload chmod 755 and run.

-rm-



- Original Message - 
From: Rob Richardson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 24, 2003 1:12 PM
Subject: Get list of available modules?


> Greetings!
> 
> I'm trying to do some Perl for a non-profit organization.  The computer
> administrator doesn't know very much about Perl or about the server. 
> If I were to ask him what Perl modules were available, he'd probably
> just have to call somebody else and get back to me.  Is there any way
> to use Perl to generate a list of such modules for me?
> 
> Thanks!
> 
> Rob
> 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RV: Newbie question about modules

2003-02-19 Thread Ramón Chávez
I have used and installed Perldiver

Just upload and run.

Great tool.

Thank you very much for the advice.

-rm-
- Original Message -
From: Todd Wade <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 18, 2003 4:33 AM
Subject: Re: Newbie question about modules


>
> "Rgíón «hávkú" <[EMAIL PROTECTED]> wrote in message
> 003001c2d474$f6f76b20$[EMAIL PROTECTED]">news:003001c2d474$f6f76b20$[EMAIL PROTECTED]...
> > Hello all.
> >
> > I've reading some messges relating to the use of modules.
> >
> > How can I know what modules are installed in the server???
> >
> > I have my site hosted on a Server far away from here. And it provides me
> > Perl with "the most commonly used modules". Being that I'm not an expert
> on
> > Perl I don't know what are the most commonly used modules. I have no
> Telnet
> > access, but only FTP, that has been quite enough for me.
> >
> > The obvious answer to my question is to "ask my hosting provider" this
> info,
> > but I think I'd prefeer a little more complex solution, if it exists.
> >
> > Is there a way I can find out this without asking my service provider??
> >
>
> of course. perldiver from scriptsolutions. Its a super slick CGI program.
>
> http://www.scriptsolutions.com/programs/free/perldiver/
>
> Just download the program, change the shebang and 755 the file.
>
> Todd W.
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Newbie question about modules

2003-02-14 Thread Ramón Chávez
Hello all.

I've reading some messges relating to the use of modules.

How can I know what modules are installed in the server???

I have my site hosted on a Server far away from here. And it provides me
Perl with "the most commonly used modules". Being that I'm not an expert on
Perl I don't know what are the most commonly used modules. I have no Telnet
access, but only FTP, that has been quite enough for me.

The obvious answer to my question is to "ask my hosting provider" this info,
but I think I'd prefeer a little more complex solution, if it exists.

Is there a way I can find out this without asking my service provider??

Thanks to all of you.

-rm-


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: File handling

2003-02-13 Thread Ramón Chávez
Try Here:

http://www.perldoc.com/perl5.6/pod/perlfaq5.html

-rm-
- Original Message -
From: Paul Kraus <[EMAIL PROTECTED]>
To: 'Bob Showalter' <[EMAIL PROTECTED]>; 'Pankaj Kapare'
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 10:55 AM
Subject: RE: File handling


> This doesn't work with activestate on windows.
>
>  perldoc -q 'change one line'
>
> Output
> No documentation for perl FAQ keyword `'change' found.
>
> -Original Message-
> From: Bob Showalter [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 13, 2003 10:56 AM
> To: 'Pankaj Kapare'; [EMAIL PROTECTED]
> Subject: RE: File handling
>
>
> Pankaj Kapare wrote:
> > Hi
> > I want to to file handling in perl.In that I  have one file which
> > contains some lines.Now I want to modify some of lines like.. My file
> > conatins line one line two
> > line three
> > password="password";
> > Login Id ="xyz"
> > line 6
> > and so on
> >
> > if i want to write new passord and login id then how can i do that?
> > Can  anybody help me with sample code Thanks in advance!
> > Pankaj
>
> Start with the FAQ article:
>
>perldoc -q 'change one line'
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Formatting Variables.

2003-02-11 Thread Ramón Chávez
Thank you everyone.

sprintf is what I was looking for.

-rm-
- Original Message -
From: <[EMAIL PROTECTED]>
To: 'Ramón_Chávez' <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 8:30 AM
Subject: RE: Formatting Variables.


> See also 'sprintf' if you don't want to print the value, but assign it:
>
> perldoc -f sprintf
> perldoc -f printf
>
> http://danconia.org
>
>
> 
> On Tue, 11 Feb 2003 09:09:55 -0500, Ken Lehman <[EMAIL PROTECTED]>
wrote:
>
> > Have you tried using printf?
> >
> > -Original Message-
> > From: Ramón Chávez [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 11, 2003 9:07 AM
> > To: [EMAIL PROTECTED]
> > Subject: Formatting Variables.
> >
> >
> > Hello boys and girls.
> >
> > Is there a way to give format to a Variable.
> >
> > I mean, if I don't want to get printed 3.1415926535 (Or any irrational
> > number) but something like 3.14, is there a way to use format??
> >
> > Or I need to make some string treating (more lines)??
> >
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Formatting Variables.

2003-02-11 Thread Ramón Chávez
Hello boys and girls.

Is there a way to give format to a Variable.

I mean, if I don't want to get printed 3.1415926535 (Or any irrational
number) but something like 3.14, is there a way to use format??

Or I need to make some string treating (more lines)??

Thank you everyone.

-rm-


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Reading Plain Text File - help

2003-02-07 Thread Ramón Chávez
Thank you very much guys.

Rob, sorry but it didn't work

open (DATOS, "$bd") || die "Error: no se puede abrir el
archivo";

while ($registro=) {}

($file, $vot_tot, $ult_vot, $sum_vot) = split(/:/,$registro);

$lineas = $.;
close (DATOS);

I had a good feeling about it but wasn't enough.

David. It made it:

open (DATOS, "$bd") || die "Error: no se puede abrir el
archivo";

while ($registro=) {
   $registro = $_;
}

($file, $vot_tot, $ult_vot, $sum_vot) = split(/:/,$registro);

$lineas = $.;
close (DATOS);


Altough I'd like to avoid $registro = $_;   in order to use less lines.

Anyway thank you.

-rm-

- Original Message -
From: Wagner, David --- Senior Programmer Analyst --- WGO
<[EMAIL PROTECTED]>
To: 'Ramón Chávez' <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, February 07, 2003 10:58 AM
Subject: RE: Reading Plain Text File - help


Ramón Chávez wrote:
> I'm trying to read the last line on a Plain text File.
>
> But when I use:
>
> open (DATOS, "$bd") || die "Error: no se puede abrir el archivo";
> while
> ATOS>){
> $registro = ;
> }
>
> I don't get any value on $registro
>
> I need to insert   $inicio = ;  --
>
> This way to get the the last line of my file in $registro:
>
> open (DATOS, "$bd") || die "Error: no se puede abrir el archivo";
> $inicio = ;
> while (){
> $registro = ;
>
>
> It sounds weird for me. But maybe I'm missing something. I mean, the
> script works at last, but I'd like better to have one line of code
> less.
>
> Can anyone help me

 You are working too hard at it  Just replace $registro =  with
$registro = $_;  and it will work for you.  What you are doing are double
reads of the file.  What while (  ) is reading one record into $_ and
the other line is reading into $registro. The file you are working with
probably has an odd number of lines. So just do:
 while (){
   $registro = $_;
  }

Wags ;)


**
This message contains information that is confidential
and proprietary to FedEx Freight or its affiliates.
It is intended only for the recipient named and for
the express purpose(s) described therein.
Any other use is prohibited.





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Reading Plain Text File - help

2003-02-07 Thread Ramón Chávez
Sorry.
Last message had an error.
--

 I'm trying to read the last line on a Plain text File.

But when I use:

open (DATOS, "$bd") || die "Error: no se puede abrir el archivo";
while
ATOS>){ 
$registro = ; 
}

I don't get any value on $registro

I need to insert   $inicio = ;  --

This way to get the the last line of my file in $registro:

open (DATOS, "$bd") || die "Error: no se puede abrir el archivo";
$inicio = ;
while (){ 
$registro = ; 

 
 It sounds weird for me. But maybe I'm missing something. I mean, the script works at 
last, but I'd like better to have one line of code less.
 
 Can anyone help me
 
 



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Reading Plain Text File - help

2003-02-07 Thread Ramón Chávez
I'm trying to read the last line on a Plain text File.

But when I use:

open (DATOS, "$bd") || die "Error: no se puede abrir el archivo";
while
ATOS>){ 
$registro = ; 
}

I don't get any value on $registro

I need to insert   $inicio = ;  --

This way to get the the last line of my file in $registro:

open (DATOS, "$bd") || die "Error: no se puede abrir el archivo";
$inicio = ;
while (){ 
$registro = ; 


It sounds weird for me. But maybe I'm missing something. I mean, the script works at 
last, but I'd like better to have one line of code less.

Can anyone help me



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: DB_file tutorial and rating script

2003-02-04 Thread Ramón Chávez
I know that Kerry. Actually I was asking to the rest of the crew.

Tnak you very much.

I have read
http://www.iar.unlp.edu.ar/~fede/revistas/lj/Magazines/LJ35/1381.html
It's really more illustrative than
http://search.cpan.org/author/PMQS/DB_File-1.806/DB_File.pm as it (the
first) lets it clear what you are trying to happen.
//
oo0--(o o)--0oo--
 ( )

See you

- Original Message -
From: Le Blanc, Kerry (Kerry) <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 04, 2003 11:00 AM
Subject: RE: DB_file tutorial and rating script


Well,
I was actually answering the part of the question that dealt with a rating
system. Since you asked, I would recommend that you read the documentation
at:
http://search.cpan.org/author/PMQS/DB_File-1.806/DB_File.pm
Reading the documentation is always the first REQUIRED step. After that,you
can check out this site for some more enlightenment.
http://www.iar.unlp.edu.ar/~fede/revistas/lj/Magazines/LJ35/1381.html

HTH

Kerry LeBlanc
Materials Auditor
Process Owner
75 Perseverence Way
Hyannis, MA. 02601
1-508-862-3082
http://www.vsf.cape.com/~bismark



-Original Message-
From: Ramón Chávez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 11:37 AM
Cc: [EMAIL PROTECTED]
Subject: RE: DB_file tutorial and rating script


What about a tutorial or guide for using DB_file??


- Original Message -
From: Le Blanc, Kerry (Kerry) <[EMAIL PROTECTED]>
To: 'Ramón Chávez' <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, February 04, 2003 8:52 AM
Subject: RE: DB_file tutorial and rating script


I would check out www.perlmonks.org.
They have a voting system for posts that would probably work for the exact
purpose that you are looking for. I am sure that you can get some good
hints. Great group of people there!

Kerry LeBlanc
Materials Auditor
Process Owner
75 Perseverence Way
Hyannis, MA. 02601
1-508-862-3082
http://www.vsf.cape.com/~bismark



-Original Message-
From: Ramón Chávez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 9:46 AM
To: [EMAIL PROTECTED]
Subject: DB_file tutorial and rating script


Hello everyone.

I have been looking for a script that allows people to upload images and let
them be rated in a given sacale by some visitors. I don't mean a poll.

I haven't anything Perl, but a very expensive script.

Given this I may try to write one. I guess a good beggining would be to
learn to use the DB_file module.
But I don't know where to begin.

1. Have any of you guys (or girls) seen a script for rating pictures??
2. Where can I find a tutorial for using DB_file??
2.1  Is this a good choice in case there's no available script yet???

Thanks to anyone who takes the time to read this.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: DB_file tutorial and rating script

2003-02-04 Thread Ramón Chávez
What about a tutorial or guide for using DB_file??


- Original Message -
From: Le Blanc, Kerry (Kerry) <[EMAIL PROTECTED]>
To: 'Ramón Chávez' <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, February 04, 2003 8:52 AM
Subject: RE: DB_file tutorial and rating script


I would check out www.perlmonks.org.
They have a voting system for posts that would probably work for the exact
purpose that you are looking for. I am sure that you can get some good
hints. Great group of people there!

Kerry LeBlanc
Materials Auditor
Process Owner
75 Perseverence Way
Hyannis, MA. 02601
1-508-862-3082
http://www.vsf.cape.com/~bismark



-Original Message-
From: Ramón Chávez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 9:46 AM
To: [EMAIL PROTECTED]
Subject: DB_file tutorial and rating script


Hello everyone.

I have been looking for a script that allows people to upload images and let
them be rated in a given sacale by some visitors. I don't mean a poll.

I haven't anything Perl, but a very expensive script.

Given this I may try to write one. I guess a good beggining would be to
learn to use the DB_file module.
But I don't know where to begin.

1. Have any of you guys (or girls) seen a script for rating pictures??
2. Where can I find a tutorial for using DB_file??
2.1  Is this a good choice in case there's no available script yet???

Thanks to anyone who takes the time to read this.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




DB_file tutorial and rating script

2003-02-04 Thread Ramón Chávez
Hello everyone.

I have been looking for a script that allows people to upload images and let
them be rated in a given sacale by some visitors. I don't mean a poll.

I haven't anything Perl, but a very expensive script.

Given this I may try to write one. I guess a good beggining would be to
learn to use the DB_file module.
But I don't know where to begin.

1. Have any of you guys (or girls) seen a script for rating pictures??
2. Where can I find a tutorial for using DB_file??
2.1  Is this a good choice in case there's no available script yet???

Thanks to anyone who takes the time to read this.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: include .pl in html

2002-12-13 Thread Ramón Chávez
It's easy. Use SSI (Server Side Includes)

As Ken said:


But maybe you may change the .html extension to .shtml

-rm-

- Original Message -
From: Ken Lehman <[EMAIL PROTECTED]>
To: 'Adam Wilson' <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, December 11, 2002 2:41 PM
Subject: RE: include .pl in html


> This works where I am at, you could give it a try
>
> 
>
> -Original Message-
> From: Adam Wilson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 10, 2002 11:27 AM
> To: [EMAIL PROTECTED]
> Subject: include .pl in html
>
>
> Hi,
>
> can anyone help me, i want to include the ouput of a perl file within an
> html file, without using a seperate frame. I am familiar with php, is
there
> a way to include like there is in php? Or do i have to output the HTML
from
> the perl script?
>
> Any help very much appreciated... i left my books at home!!!
>
> Adam.
>
> --
--
> 
> The views and opinions expressed in this email message are the sender's
> own, and do not necessarily represent the views and opinions of Summit
> Systems Inc.
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Trying PERL in windows

2002-12-04 Thread Ramón Chávez
Hello everybody.

Does any of you know if there's a way to try Perl scripts on windows? And
I'm not meaning using a Perl interpreter for W32.
I mean, I'm running a website hosted on a remote server (I have FTP access
only) that's running Apache on Linux. And I'm using some Perl scripts from
the web. But now I want to write my own ones.
I can't be connected to the web all the day, so it would be very useful to
have, say a server emmulator running perl on my windows machine. Just for
trying the scripts.

Is there some sort of software doing that?
Or I am just dreaming ?




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]