On Mon, Nov 15, 2010 at 1:54 PM, Uri Guttman wrote:
> > "sw" == shawn wilson writes:
>
> sw>my $worksheetout = $workbookout->add_worksheet( '$year' );
>
> why are you quoting $year? that doesn't do what you think it does. in
> fact it is a bug. you aren't checking if you get results out
> "sw" == shawn wilson writes:
sw>my $worksheetout = $workbookout->add_worksheet( '$year' );
why are you quoting $year? that doesn't do what you think it does. in
fact it is a bug. you aren't checking if you get results out of that
call which is another problem.
uri
--
Uri Guttman
too much freaking data. i increased my scroll buffer and found that i do get
data, just not the last 1k lines err
On Mon, Nov 15, 2010 at 12:33 PM, shawn wilson wrote:
> so, i'm thinking i'm not understanding references here again, but here's
> what i have.
>
> i fill in my array here:
>
Thanks for the answers.
I have tried to use quotemeta but it did not work as expected, DBI's
quote function was exactly what I want.
Thanks again,
On Jul 1, 6:35 pm, [EMAIL PROTECTED] (Amit Saxena) wrote:
> use
>
> $*dbh*->*quote*($str)
>
> On Tue, Jul 1, 2008 at 4:59 AM, Gunnar Hjalmarsson <[EM
use
$*dbh*->*quote*($str)
On Tue, Jul 1, 2008 at 4:59 AM, Gunnar Hjalmarsson <[EMAIL PROTECTED]>
wrote:
> Beyza wrote:
>
>> I have an array which has strings like;
>>
>> John's House
>> Bla bla;
>> etc,
>>
>> When I use them in an SQL query, perl gives an error. So, I need to
>> put escape chara
Beyza wrote:
I have an array which has strings like;
John's House
Bla bla;
etc,
When I use them in an SQL query, perl gives an error. So, I need to
put escape character for every special character. Is there any quick
way to do it?
perldoc -f quotemeta
--
Gunnar Hjalmarsson
Email: http://
Beyza wrote:
> Hi,
>
> I would like to know how to insert escape character in front of
> special characters in an array.
>
> I have an array which has strings like;
>
> John's House
> Bla bla;
> etc,
>
> When I use them in an SQL query, perl gives an error. So, I need to
> put escape character
Beyza wrote:
Hi,
I would like to know how to insert escape character in front of
special characters in an array.
I have an array which has strings like;
John's House
Bla bla;
etc,
When I use them in an SQL query, perl gives an error. So, I need to
put escape character for every special charac
Is this what you wan't ?
> open INPUT,"<$ARGV[0]";
> while ($line=){
>push (@array,$line);
> }
>foreach $i(@array){
>print $i;
> }
"Andrej Kastrin" <[EMAIL PROTECTED]> skrev i en meddelelse
news:[EMAIL PROTECTED]
>I wrote simple script, which have to concatenate multiple lines
Andrej Kastrin am Montag, 23. Januar 2006 07.55:
> I wrote simple script, which have to concatenate multiple lines into
> array and then print each element of tihis array:
>
> I don't know where is the problem, Please, help!
The basic problem is that you try to print the result within the (while)
Mr Andrej,
I think the following code will work for u,
open INPUT,"<$ARGV[0]";
while (){
@array=$_;
}
foreach $i(@array){
print $i;
}
Regards
Mazhar
On 1/23/06, Thomas Bätzler <[EMAIL PROTECTED]> wrote:
>
> Andrej Kastrin <[EMAIL PROTECTED]> asked:
> > I wrote simple script, which have
Andrej Kastrin <[EMAIL PROTECTED]> asked:
> I wrote simple script, which have to concatenate multiple
> lines into array and then print each element of tihis array:
>
> open INPUT,"<$ARGV[0]";
> while ($line=){
I would instead suggest you use the <> special filehandle.
This automagically opens a
On Mon, Nov 11, 2002 at 06:17:58PM -0500, Cacialli, Doug wrote:
> I've got oodles of data. It looks like this:
>
> 0 @F1@ FAM
> 1 HUSB @I13@
> 1 WIFE @I14@
> 1 CHIL @I8@
> 0 @F2@ FAM
> 1 HUSB @I10@
> 1 WIFE @I8@
> 1 CHIL @I11@
> 1 CHIL @I12@
> etc.
[ snip problem ]
> I'm familiar with substr,
> 0 @F1@ FAM
> 1 HUSB @I13@
> 1 WIFE @I14@
> 1 CHIL @I8@
> 0 @F2@ FAM
> 1 HUSB @I10@
> 1 WIFE @I8@
> 1 CHIL @I11@
> 1 CHIL @I12@
> etc.
$/ = undef;
for (split /\n0/, <>) {
($key) = /\@(..)/;
$hash{$key} = [ /\@(\w+)\@$/gm ];
}
> $individuals{"F1"}[0] = "I13";
> $individuals{"F1"
No need to apologize. Agreed.
http://danconia.org
Jason Tiller wrote:
Hi, Wiggins, :)
On Mon, 11 Nov 2002, Wiggins d'Anconia wrote:
This solution works well and is clean, if you are curious about some
of the *magic* he is performing in his foreach I would suggest
reading up on the special v
Hi, Wiggins, :)
On Mon, 11 Nov 2002, Wiggins d'Anconia wrote:
> This solution works well and is clean, if you are curious about some
> of the *magic* he is performing in his foreach I would suggest
> reading up on the special variable $_ for those of us experienced in
> perl it isn't as daunting
This solution works well and is clean, if you are curious about some of
the *magic* he is performing in his foreach I would suggest reading up
on the special variable $_ for those of us experienced in perl it isn't
as daunting to just throw a foreach (@array) in the code and know that
it is goi
Hi, Doug, :)
On Mon, 11 Nov 2002, Cacialli, Doug wrote:
> I'm new to programming in perl, and relatively new to programming at
> all, so I apologize if this is a little hard to follow.
Wasn't hard at all! You described the problem very succinctly.
> I've got oodles of data. It looks like this
One additional thing:
The data exists in an array, where each line of raw data is a scalar string
within the array.
-Original Message-
From: Cacialli, Doug
Sent: Monday, November 11, 2002 6:18 PM
To: '[EMAIL PROTECTED]'
Subject: Array problem, I think
Y'all,
I'm new to programming in p
- Original Message -
From: "maureen" <[EMAIL PROTECTED]>
To: "Leon" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, January 21, 2002 8:39 AM
Subject: Re: Array Problem
> if ($username ne /$in{username}/)
> {
Anything in between the
Thanks so much for your help on this. I tried this suggestion, but
unfortunately, the array @indata does not seem to contain the usernames
from the file pwdata.txt.
I've been looking at this for hours. I hope someone can help me figure
out what I am missing here. The objectives for this code and
- Original Message -
From: "maureen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
> Currently, the array seems to only be picking up the last name listed in
> the text file.
> @indata = ;
> close(FILE);
> foreach $i (@indata)
> {
> #remove hard return character from each record
> chomp($i
22 matches
Mail list logo