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