T
Tony McGuire
New to PERL.
Can you exit from the middle of a script that is handling incoming
data based on IF statements?
I have a simple script for processing incoming uploads. (Thanks,
Tore!)
Based on the input, I'd like to be able to return info back to the
user.
(I have the info on retrieving the input values)
input field: $uniqueid
input field: $filename
if (length $uniqueid<1) {
# build HTML and return to user
}
if (length $filename<1) {
# build HTML and return to user
}
# process everything, since we have the info we need.
So, if certain conditions aren't met, I'd like to bail and return info
back to the user. I realize you can do this with nested if..else
statements; I am hoping I can halt processing and return to the user
if individual 'if' statements resolve to false.
Is this possible in PERL? And if so, can anyone point me to the
methodology I would need?
Can you exit from the middle of a script that is handling incoming
data based on IF statements?
I have a simple script for processing incoming uploads. (Thanks,
Tore!)
Based on the input, I'd like to be able to return info back to the
user.
(I have the info on retrieving the input values)
input field: $uniqueid
input field: $filename
if (length $uniqueid<1) {
# build HTML and return to user
}
if (length $filename<1) {
# build HTML and return to user
}
# process everything, since we have the info we need.
So, if certain conditions aren't met, I'd like to bail and return info
back to the user. I realize you can do this with nested if..else
statements; I am hoping I can halt processing and return to the user
if individual 'if' statements resolve to false.
Is this possible in PERL? And if so, can anyone point me to the
methodology I would need?