Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: naq2
  • Content: Threads
  • Order by date
  1. naq2

    HASH INITIALISATION

    A very simple question for you guys, expert of hashes: Can I do that? (I mean... will it work?) my %myHash ; $myHast{toto}{tata} = "DID YOU SEE THIS?!" ; print $myHast{toto}{tata} ; #will this print 'DID YOU SEE THIS?' or do I have to initialise the hash in some other way? Thanks for your help.
  2. naq2

    SIZE OF IMAGES

    I think I saw something about knowing the size of an image some time before on this forum but... I saw somewhere - maybe here... I can't remember - a way of knowing the size of an image without downloading the whole image (by downloading only the header of these). Concretly... I give an URL of...
  3. naq2

    Opening a file in READ/WRITE format

    I'm don't really know how to open for readding and writing at the same time... Usually, I used to open it in "append" mode and it was fine for me. What I exactly want to do is: Replace the $i line without altering the lines before and lines after. If you have any simple way of doing so...
  4. naq2

    Reference to an anonymous hash

    How to write a reference to an anonymous hash? For an array, it would be: $rArray = \(1, 2, 3, 4) ; Thanks for you help.
  5. naq2

    posting data with an HTTP redirection

    This is not documented in the CPAN documentation on the CGI module. Normally, to do some HTTP redirection, I'll use: print $myCGI->redirect("http://mynewurl.com/toto.html") ; This is great... but... what happens if I want to post data to this URL I'm asking for a redirection. How do I do...
  6. naq2

    Listing files in a directory

    How can I list the files and perform an action on eachone. An algorism of what I want to do could be: foreach FILE in DIRECTORY { PERFORM AN ACTION ON THE FILE } Thanks in advance.
  7. naq2

    Am I the one?: require()

    I have some trouble when using require(): sometimes it works, sometimes it doesn't. Have you faced the same problem? I have a script that does some requires (12) inside the code (not at the beginning). When I access the script via my favorite browser (Firefox), it can: execute 1 require() and...
  8. naq2

    $var eq $array["something"]

    Is there any way of testing if a varible is one of the values contained in an array. All this in one line! :) We can do it using a foreach loop, but I was wondering if there was a standart function for this. Thanks.
  9. naq2

    static in Perl

    I'm just wondering if the concept of a static variable (like in C: the value is private but keeps it value between calls) exist in Perl? If yes... how to do this? Is it with "local"? Thanks for you help.
  10. naq2

    question on the "keys" builtin "function"

    Can somebody tell me what is wrong with this code: my @recognisedTags = keys %tmpTagGeneralLists ; foreach my $i (@recognisedTags) { print $i ; } I'm expecting something like: but it cames with: Isn't key suppose to return the list of the keys? like a "string" array? Thanks for you help.
  11. naq2

    Accessing PERL functions from another PERL file?

    Hi there, Just a simple question: How do I access a function that is in FILE2.pl when I'm in FILE1.pl? Thanks for your help.
  12. naq2

    Can't make HTTP::Lite works! GRRR!

    Hi there, I manage to solve all my today's problems. Now it is time for tomorrow's ones! 1) I can't make HTTP::Lite work. It work very fine for local pages (pages on localhost: http://localhot/myfile.html), but as soon I want to access ouside websites (I've been trying with...
  13. naq2

    Apache Server Configuration / Archive::Zip

    Hi guys... Thanks again for all your answers to my previous post... It really helped me. Even if is still not totally fixed... it's getting lot better and I'm less close to suicide! Another question that is not directly related to Perl but I'm sure that you already faced it and you're nice...
  14. naq2

    Simple problem with global variables

    I have some kind of strange problem: I have a GLOBAL variable declare like: $url = $CGIHandle->param("url") ; #without any my before This variable is declared out of any subroutine... but when I want to access to it from one subroutine (in the same file) the value happily changes itself...

Part and Inventory Search

Back
Top