- Feature Articles
-
CodeSOD
- Most Recent Articles
- Building a Line
- Next Month
- Plenty of IDs
- Eventually
- Only Create Me if I Exist
- Death of the Auth-Er
- Get It Now
- Oh, K?
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
"Hello", said the stranger speaking to the others alerting them to his presence. Not that he needed to. But it was what little courtesy he could offer given what was to happen next. Email and password had always been thick. They were each others ride or die. Unfortunately for them fate had chosen die. And Bobby... Bobby was here to deliver.
Admin
Y'know what they say: "Live and let die"
Admin
Looks like PHP to me...
Admin
Yes, it is definitely not Perl a Perl does not have the public keyword (unless they managed to make something really funky with overloading).
Admin
Then why didn't they just, well, you know, disable the route?
Admin
That's because PHP looks like Perl.
Admin
echo 'Hello, my name is Inigo Montoya. You killed my father. Prepare to'; die;Admin
The code is neither Perl and also not quite PHP either. For one, there's no signals on the variables.
Admin
SIgnals? Do you mean dollar signs? There aren't any variables at all.
Admin
It's murder, is what it was, clear as day.
Two stiffs in a motel room in the shady side of town. The sort of place you went to when you wanted no witnesses. And sure enough, the locals weren't talking. Those that hadn't split when they heard the gunshots were all either too drunk, too high or too stupid to have noticed anything. And the caretaker was more concerned with the stain in the carpet than the poor saps that bought it in one of her rooms.
Cases like this made me wonder why I joined the force. A week ago these two were a bunch of nobodies scraping by on the underside of society. A week from now they'll be just another cold case filed away with the rest of them.
A younger me might have hoped this time would be different. That just this once someone would care. But I knew better. Yet I had to try all the same.
Admin
die if Perl;There ^^^ I fixed it!
Admin
It's murder in the func store
Admin
Hengist: [sedated and laughing, as Kirk carries him out] You'll die. Die, die, die, everybody die. Kill, kill, kill you all.
Admin
I think you meant "sigil".
Admin
Isn't "die" in Perl just "throw" or "raise" in other languages?
Admin
I called the function
, just to watch it ....Admin
This doesn't look like any perl i've ever written. The seach engine says thus:
This code is written in PHP, specifically using the Laravel framework (likely version 4.x or 5.x based on the specific syntax like Input::only and Redirect::back()).
Key Identifiers:
Admin
No. It is the equivalent of
exit(something_not_EXIT_SUCCESS);in C/C++. I wouldn't have described that as either "throw" or "raise".Admin
Yes
die()can be used that way, though it also hastry,catch/, andfinally` which is much more modern.Admin
In an
evalcontext, it was the old way to throw an exception, thoughtry,catchhave been around and are the preferred, modern way to handler that. Also the code in the article is not Perl code.Admin
The error message "Oops! Fails" is also top notch and fully consistent with today's trend to be funny about program errors. Ohaha! Oopsie, huh... something happened! Hehe! Your PC is broken. :) Try again later.
Admin
Beautifully put.
Admin
Auth::attempt(Input::only(... and the ->with_input() at the end makes me think it's old Laravel-framework PHP?
Admin
Hm.... I'll wait for more messages. Maybe one of them will inspire me to continue the story.
Admin
Yes, thank you. Autocorrect really got me there.
Admin
Maybe you're right, but which other language has "die" as a keyword (other than the "once Perl6" Raku)?
Admin
PHP has a
die()built-in function, an alias forexit().