Re: Problem when use split

2004-04-30 Thread John Doe
"Bob Showalter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > John Doe wrote: > > ... > > When i run script i recive error: > > # ./check-size.pl > > > bad interpreter: No such file or directory > > This can be caused by the file containing DOS-style line endings. If the > first lin

Re: Problem when use split

2004-04-30 Thread John Doe
"Casey West" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It was Thursday, April 29, 2004 when John Doe took the soap box, saying: > : Hello all, > : i write script that open and read file but i have problem. > : First, here are a script: > : > : if (-e $fulltree) { # check

Re: Problem when use split

2004-04-29 Thread John W. Krahn
John Doe wrote: > > Hello all, Hello, > i write script that open and read file but i have problem. > First, here are a script: > > #!/usr/bin/perl Change that to: #!/usr/bin/perl -w use strict; > use DBI; > > my $dbuser = "xxx"; > my $dbpass = "xxx"; > my $db = "xxx"; > > my $u_dbuser

RE: Problem when use split

2004-04-29 Thread Bob Showalter
John Doe wrote: > ... > When i run script i recive error: > # ./check-size.pl > > bad interpreter: No such file or directory This can be caused by the file containing DOS-style line endings. If the first line is: #!/usr/bin/perl the kernel will include the as part of the file name and try to

Re: Problem when use split

2004-04-29 Thread Casey West
It was Thursday, April 29, 2004 when John Doe took the soap box, saying: : Hello all, : i write script that open and read file but i have problem. : First, here are a script: : : if (-e $fulltree) { # check to see if file exist : open(FILE, "$fulltree"); : my @f = ; : close(FILE)

Problem when use split

2004-04-29 Thread John Doe
Hello all, i write script that open and read file but i have problem. First, here are a script: #!/usr/bin/perl use DBI; my $dbuser = "xxx"; my $dbpass = "xxx"; my $db = "xxx"; my $u_dbuser = "xxx"; my $u_dbpass = "xxx"; my $u_db = "xxx"; my $sth = ""; my $dbh = ""; my $result = ""; my $sq