Hello everyonel,
I have an array set like so
num=4
read name
arr=name
I go through while loop to assign different values to different array element from 1 to 4. when I try to access the FIRST element of the array I get the last one first. Like if I say ${arr} it will show the last element... (4 Replies)
Probably I am not seeing it or I am not using the "delete" correctly I had the following codes but it does not work for me
#!/bin/perl -w
...
@sysFile1 = (a_b, a_c, a_d);
@sysFile2 = (a_c, a_e, b_f);
foreach $line1 (@sysFile1){
trim(\$line1);
(my $tmp1, my $tmp2) = split/_/,... (6 Replies)
Hello guys,
I have the following question.
Consider the following code in PERL
for($xeAnumber=0; $xeAnumber<@xeAnumber; $xeAnumber++)
{
if(@xeAnumber==@final_file)
{
@final_file=@xeTimeStamp;
}... (3 Replies)
All,
I would like to add the first 10 elements of an array. Here is how I am doing it now (only included first few add ops):
#!/usr/bin/ksh
###Grab the array values out of a file###
TOTAL=`awk '/time/' /tmp/file.out | awk '{print $4}'`
set -A times $TOTAL
SUM=$((${times} + times... (3 Replies)
hi,
I have a array like
my $array = ( "apple","ball","cat","dog","elephant");
how to push some element in the array to the first position.
for example my final array should be
elephant apple ball cat dog (5 Replies)
I am trying to take all the elements of an array and multiply them by 2, and then copy them to a new array. Here is what I have
i=0
for true in DMGLIST
do
let DMGSIZES2="${DMGSIZES}"*2
let i++
done
unset i
echo ${DMGSIZES2}
It does the calculation correctly for the first element,... (7 Replies)
I am filtering the value of Server status from a file and am storing it in a temp file which I compare later to exit with appropriate status. I am wondering if I can directly output the value of Server status as an array element and then compare the value of elements to get the right exit status
... (2 Replies)
Hello to all,
I'm trying to separate the string "str" using a regex within match function.
The substrings that I want to separate, begin with 22, 23, 24 or 25 and followed by 12 or 14 characters. And I want to
replace 22 with MJS, 23 with UYT, 24 with WER and 25 with PIL.
For this string... (4 Replies)
This question is for someone that's more familiar with Array Element.
I need to know if the maximum array element that can be assigned is 1024 and if its so, Is there a workaround solution when the counter exceeded 1024?
param_array="$param_nam"
counter=$counter+1
#to avoid space... (3 Replies)
Discussion started by: cumeh1624
3 Replies
LEARN ABOUT DEBIAN
dbix::dbschema::index
DBSchema::Index(3pm) User Contributed Perl Documentation DBSchema::Index(3pm)NAME
DBIx::DBSchema::Index - Index objects
SYNOPSYS
use DBIx::DBSchema::Index;
$index = new DBIx::DBSchema::Index (
{
}
);
DESCRIPTION
DBIx::DBSchema::Index objects represent a unique or non-unique database index.
METHODS
new HASHREF | OPTION, VALUE, ...
Creates a new DBIx::DBschema::Index object.
Accepts either a hashref or a list of options and values.
Options are:
name - Index name
using - Optional index method
unique - Boolean indicating whether or not this is a unique index.
columns - List reference of column names (or expressions)
name [ INDEX_NAME ]
Returns or sets the index name.
using [ INDEX_METHOD ]
Returns or sets the optional index method.
unique [ BOOL ]
Returns or sets the unique flag.
columns [ LISTREF ]
Returns or sets the indexed columns (or expressions).
columns_sql
Returns a comma-joined list of columns, suitable for an SQL statement.
sql_create_index TABLENAME
Returns an SQL statment to create this index on the specified table.
cmp OTHER_INDEX_OBJECT
Compares this object to another supplied object. Returns true if they are identical, or false otherwise.
cmp_noname OTHER_INDEX_OBJECT
Compares this object to another supplied object. Returns true if they are identical, disregarding index name, or false otherwise.
AUTHOR
Ivan Kohler <ivan-dbix-dbschema@420.am>
Copyright (c) 2007 Ivan Kohler Copyright (c) 2007 Freeside Internet Services, Inc. All rights reserved. This program is free software;
you can redistribute it and/or modify it under the same terms as Perl itself.
BUGS
Is there any situation in which sql_create_index needs to return a list of multiple statements?
SEE ALSO
DBIx::DBSchema::Table, DBIx::DBSchema, DBI
perl v5.14.2 2007-06-28 DBSchema::Index(3pm)