Re: glean distro version from /etc/*release

2005-04-08 Thread Stephen Day
ase seems to be 'debian'. Stephen Day -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Operation `eq': no method

2005-04-14 Thread Stephen Day
On Wednesday 13 April 2005 6:30 pm, JupiterHost.Net wrote: > Anish Kumar K wrote: > > Hi All > > Hello, > > > The code gives strange error > > > > $subject = I get some value from the function > > > > if ($subject eq '' || !defined $subject) > > { > > Some operation > > } > > > > Operati

Re: Passing command line arguments

2005-04-14 Thread Stephen Day
On Wednesday 13 April 2005 11:12 pm, Bret Goodfellow wrote: > I have a script that is reading input from ARGV. The script is being > passed a file name as follows: > > datefile.pl c:\program files\IBM\SQLLIB\DB2\db2diag.log You could paste the two arguments together in perl, add a space between t

Re: Passing command line arguments

2005-04-14 Thread Stephen Day
On Friday 15 April 2005 12:18 am, John W. Krahn wrote: > >>datefile.pl c:\program files\IBM\SQLLIB\DB2\db2diag.log > > > > You could paste the two arguments together in perl, add > > a space between them, and use that as the filename. > > What if there are two or more spaces? A TAB character? Th

Programming exercises

2005-04-18 Thread Stephen Day
Hello, Does anyone know of a website that lists some programming exercises to help in learning perl? I find it a lot easier to learning a language if I have exercises to apply it to. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Programming exercises

2005-04-18 Thread Stephen Day
On Monday 18 April 2005 7:39 pm, Robert wrote: > "Stephen Day" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > Hello, > > > > Does anyone know of a website that lists some programming exercises to > > help in > > lear

DBI::AnyData problem

2006-03-26 Thread Stephen Day
I have perl, v5.8.7 built for i686-linux running on gentoo. I've installed the DBI::AnyData modules ( DBI, SQL::Statement, DBD::CSV, AnyData, DBD::AnyData ) with perl -e 'use CPAN; install ' I have the following script more or less copied from the CPAN example: -- Start #!/usr/bin/perl use DBI;

Re: DBI::AnyData problem

2006-03-26 Thread Stephen Day
On Sunday 26 March 2006 18:58, Stephen Day wrote: > I have perl, v5.8.7 built for i686-linux running on gentoo. > I've installed the DBI::AnyData modules ( DBI, SQL::Statement, DBD::CSV, > AnyData, DBD::AnyData ) with perl -e 'use CPAN; install ' > > I have the