Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Friday Code Quiz

by ChOas (Curate)
on Sep 21, 2001 at 15:23 UTC ( #113850=note: print w/replies, xml ) Need Help??


in reply to Friday Code Quiz

Okay, a shot at it: it won`t be 1,2, as it`s not quoted;
It won`t be the last element of the a list as it`s not bracketed (sp.?) as a list;

Idea: Perl tries to parse 1,2 into a scalar, fails at the comma,
does the best to do the thing that seems logical and parses it as
$i=1,(as an int) truncating the ,2 to the semi-colon...
and skipping to the next instruction

But then again.. I should read a lot on the Perl parser...

GreetZ!,
    ChOas

print "profeth still\n" if /bird|devil/;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://113850]
help
Chatterbox?
[Perl300]: Hi all
[Perl300]: I have a quick question about the Meta CPAN
[Perl300]: On any modules pod page, what does the date on top left corner below authors name indicate?
[Corion]: Likely the date of the release of the module

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2017-12-11 17:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (310 votes). Check out past polls.

    Notices?