I was looking through some example query questions are found these two:
Consider the following database structure:
pizza(pid, pname, size)
store(sname, phone, quality)
soldby(pid, sname, price)
1. Find the name of all the stores that sell both veggie and cheese pizza.
2. Find the names of all...
Hi all
Got a problem i thought would be fairly easy to figure out :\!
I've got a large string, say of 2000 characters. And a keyword phrase.
What I'd like to do is find the first instance of this keyword phrase in the string, then chop the string to take 50 characters from behind the first...
Hi all
just a quick question. I've been taking a look at the XML::Parser module, its been a while since i did!
The subs style option seems intresting, when the parser hits an xml tag for example <bookname> it calls a sub routine you define as bookname.
If i were to implement this, is there...
Hey guys
I've built a basic shop system as a small project, in object orientated perl ;)!
I was just wondering what happens when multiple users call the same functions at the same time?
I have cgi scripts at the front end, and they use generic back end functions, i could have 5,10,15 users...
hey guys
Is there anyway i can assign the value of an element to a varible in an incremental manner?
I have this xml for example
<example>
<definition>Business</definition>
<definition>Sport</definition>
</example>
now these values are dynamic, so there may be more than one...
Hi guys
I posted last week about splitting data up into sevral pages and got a great response that i should create divs for each page and show / hide them via hyperlinks.
Well i've got a new problem :) I've applied this technique to sorting by creating more divs which display content in a...
Hey guys
sorry for the long title :) I've got an XML data structure as follows:
<entry>
<name>New Entry</name>
<dataSet1>
<showingResults>1-5</showingResults
<result>
<docTitle>April 2005</docTitle>...
Hey all,
Right I've searched far and wide for this but can only find information on how to make a perl module, not how to organise them.
I've made a few perl modules, for example
Joe.pm
Andy.pm
Sam.pm
and i want to place them into a sub folder called PEOPLE.
So i assume i must rename the...
Hey
I'm currently testing out the template toolkit package for use with displaying results from the swish-e search engine. The template file is an example one provided at http://swish-e.org
The problem is that it displays nothing in the web browser but the script produces the code when i run...
Hi all
This is probably a stupid question with an easy answer...
Is there any way to get the name of an array and use in a string?
say i had the array:
@dogs = ("rover","larry","Bruce");
would it be possible to take the name of the array (dogs) and use it in another variable?
I tried...
Hey
Just wondering weather it is possible to run another command line argument from within a perl script?
Say i wanted to run another perl script for example from within another...
c:\blah>perl somescript.pl
can i execute this from within another perl script?
cheers
andy
Hey guys
Just a quick question, I'm writing, to a html file, a link whose href and text comes from another file.
The problem im having is when i add together the final string ready to write out:
<code>$replaceString = "<a href=$url[$j]>$description[$j]<\/a>";</code>
the problem is that once...
Hey guys
Im wanting to read in from a directory of files and take each file in turn checking for a specific word. Once have have found this word i want to replace it.
I've got a solution but its not really that efficent. It reads all the content of the file and stores it in an array, logs...
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.