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: millimeter
  • Content: Threads
  • Order by date
  1. millimeter

    Getting JPEG Dimensions w/o ImageMagic?

    Howdy, Does anyone one have a Perl script that will get JPEG image dimensions (width/height) without ImageMagic? I basically want to glob through an image dir and return or print the dimensions. I can do the basic globing, opening, or reading...etc. But I have spent many hours working with a...
  2. millimeter

    How Do I remove a specific chracter from the end of a string?

    Greetings, I am replacing spaces in a string with underscores: $userInput = "newname " (notice space) $userInput =~ s/( )/\_/g; However if the user leaves space(s) at the end of the string it then is output as; "newname_" This posses issues as you likely can imagine...
  3. millimeter

    Time Controlled Execution in Virtual Domain (& sub dirs)

    Greetings, I am a ammeter Perl programmer looking for a method to run a script or some operation (shell.. etc) based on time. I looked into cron but this as I understand is one per server, not virtual domain. For example I need to execute a script that reads a text file once every hour based...
  4. millimeter

    Timed Scripts in Virtual Domains

    Greetings, I am an ammeter Perl programmer looking for a method to run a script or some operation (shell.. etc) based on time. I looked into cron but this as I understand is one per server, not virtual domain. For example I need to execute a script that reads a text file once every hour based...
  5. millimeter

    Creating an list/array with glob & then test

    I am trying to create a directory list array so that I can then check the list for a specfic directory name. I have not been able to find an example, nor do it succesfully. This is what I am supposing will work?; while(glob("*/")) { $_(@dirlist); } foreach $list(@dirlist) {...
  6. millimeter

    Selectively editing input value - Help Needed.

    I am able to remove various elements, including combinations of occurrences. Example: $someFileName ="text.txt"; $someFileName =~ s/(.txt)//g ; # remove ".txt" print "$someFileName"; Output is "text" However I have been unable to get working anyway of...
  7. millimeter

    How can you remove new lines when using <<SAVING;

    When using the following routine I am getting a new line in the text file I am writing. Anyway to prevent this; $somevalue= $in{&quot;somevalue&quot;}; chomp ($somevalue); open(HEADINGFILE, &quot;>filename.txt&quot;); print HEADINGFILE <<SAVING; $somevalue SAVING close(HEADINGFILE);

Part and Inventory Search

Back
Top