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...
Howdy...
bpinos is correct in general… Because it is at line 0 it looks like your losing the bracket right after alert… escape all your brackets. You are likely loosing more than that, but because the actual Perl parsed code is not shown, I can’t tell.
Parsing JavaScript with Perl can get...
Howdy...
This is a common problem.
This may seem obvious but...
If you sometime recenlty Defined a Site, even testing, Dreamweaver will assume that you are working relitive to the "Site" the next time you open it and place this path. Normally it will promt you, saying "...the...
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...
Thanks tl66 but That method exits on finding the case... I need to check the list/array for several items at different times without globing every time. Or print the list such as;
foreach $list(@dirlist)
{
prnt "$list";
}
Thanks.
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...
1. Do you program in Perl?
2. Do you have a basic formmail script running?
3. If so, it sould have an area where it specifies input names from the form, you would have $url = $in{"url"};
or it parses all input from the form.
Simply make sure there are input fields in your form for...
Thanks Krel... that was the solution.
The reason I used it is because when I first started learning I used it successfully for multi-line and never ran into any reasons to try anything else till now... still learning!
Thanks.[thumbsup2]
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.