Re: readline() on unopened filehandle at

2010-01-12 Thread John W. Krahn
Noah wrote: Hi there, Hello, I am trying to figure out why the following error is happening from time to time when I am unlink'ing a file. readline() on unopened filehandle at ./check.pl line 207. here is the code - lines 205-207 my $filename = "$outputdir/$device.$configuration_file_

Re: Question about matching time code evaluation in Perl

2010-01-12 Thread C.DeRykus
On Jan 8, 12:21 pm, frank.w.w...@gmail.com (Soldier) wrote: > Hi, > I came across these two pieces of codes, why would the "local $i=$i+1" > be backtracking-safe? > > $_ = 'lothlorien'; > m/  (?{ $i = 0 })                    # Set $i to 0 >     (.    (?{ $i++ })    )*          # Update $i, even af

readline() on unopened filehandle at

2010-01-12 Thread Noah
Hi there, I am trying to figure out why the following error is happening from time to time when I am unlink'ing a file. readline() on unopened filehandle at ./check.pl line 207. here is the code - lines 205-207 my $filename = "$outputdir/$device.$configuration_file_ext"; print "filen

Re: What does the __FILE__ mean?

2010-01-12 Thread Mike Blezien
Ok, thanks I think I found what I was looking for, Mike(mickalo)Blezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= - Original Message - From: "Shawn H Corey" To: "Mike Blezien" Cc: "Perl Lis

Re: What does the __FILE__ mean?

2010-01-12 Thread Shawn H Corey
Mike Blezien wrote: > Hello, > > I have sub routine in a module that creates a MD5 hash: > > &make_md5(__FILE__); > > what exactly does this "__FILE__" represent, the current filename ? See `perldoc perldata` and search for /Special Literals/ http://perldoc.perl.org/perldata.html -- Just my

What does the __FILE__ mean?

2010-01-12 Thread Mike Blezien
Hello, I have sub routine in a module that creates a MD5 hash: &make_md5(__FILE__); what exactly does this "__FILE__" represent, the current filename ? thanks for any help, Mike(mickalo)Blezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing =-=-=-=-=-=-

Re: How to make skip an input parameter.

2010-01-12 Thread Dr.Ruud
Parag Kalra wrote: use Getopt::Long; my ( $name, $passion, $age); my $result = GetOptions( 'name|n=s' => \$name, 'passion|p=s' => \$passion, 'age|a=i' => \$age, ); I prefer the hashref mode: #!/usr/bin/perl -wl use strict; use Data::Dump

RE: Send mail using SSL

2010-01-12 Thread Gurunandan R. Bhat
Look up the documentation for Email::Sender::Manual::QuickStart. It has a nice example for a MIME::Entity with an attachment. Regards On Tue, 2010-01-12 at 16:11 +0800, Thomas Yan wrote: > Thanks. But I can't find how to send attachment using Email::Sender on CPAN. > Or maybe I am not careful

RE: Send mail using SSL

2010-01-12 Thread Thomas Yan
Thanks. But I can't find how to send attachment using Email::Sender on CPAN. Or maybe I am not careful enough to find it. Is there any module easy to send attachments over ssl? -Original Message- From: Gurunandan R. Bhat [mailto:g...@dygnos.com] Sent: Tuesday, January 12, 2010 2:52 PM T