I have 3 arrays
@a = ('a1','a2','a3');
@b = ('b1','b2','b3');
@c = ('c1','c2','c3');
I need to sort the data like:
a1 b1 c1
a2 b2 c2
a3 b3 c3
Thanks in advance..
N
Basically I want to sort data returned by an sql query.
my $sth = $dbh->prepare("SELECT Title, Age, name FROM Jobs ORDER BY Title");
while (my ($title, $age, $name) = $sth->fetchrow_array) {
print "$title<br>";
}
When using "ORDER BY Title" the data returned...
You can also try the Template Toolkit (CPAN: Template).
This module has a killer set of graphing utilities (among other things) that are easy to implement.
CPAN install Template
Anyone know how to convert EPOCH seconds to a format
like 0000-00-00 00:00:00
I have reviewed several modules (Date::Calc, HTTP::Date) and can't seem to find anything that even comes close.
The only solution I have found to convert this mess is:
my $newtime = scalar localtime($epoch_time)...
Can anyone help me...
Basically I have a folder that contains folders with data.
What I am trying to do is descend into each folder (2 levels) and move the contents up (two levels) then conmtinue to the next folder in the list and repeat the same action.
Confused???
Example:
(BEFORE)
MAIN/...
Lets say I have a database.. I also have an HTML form to add/edit the database.. If a user already has data in the database then the form should already be filled out with the data on load. This means the text field values, radio button values, and of course pulldown menu's.
EXAMPLE::
If the...
I must not be explaining this correctly..
EXPLAINATION::
Lets say I have a database.. I also have an HTML form to add/edit the database.. If a user already has data in the database then the form should already be filled out with the data on load. This means the text field values, radion button...
basically I have a pre-select value, lets say "AK"
I want the pulldown to reflect the value chosen.
So if I use the value of "AL" the pulldown will say "Alaska"
I have a pulldown menu that looks like this below:
<script language="javascript">
<!--//...
Basically here is the problem..
I have a Pulldown (selectedIndex) that looks like this.
<select name=test>
<option value="AL">Alabama
<option value="AK">Alaska
<option value="AS">Am. Samoa
What I a trying to do is pass values from a javascript to the form...
Basically I am trying to define a value within my script and have it select the appropriate radio button..
EXAMPLE:
to do this with a text field document.theFormName.textField.value = "My data";
to do this with a selected index field document.theFormName.textField.selectedIndex...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.