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

Re^3: my $1

by codeacrobat (Chaplain)
on Apr 23, 2009 at 20:47 UTC ( #759661=note: print w/replies, xml ) Need Help??


in reply to Re^2: my $1
in thread my $1

Baah, this gives me creeps.
perl -e '@foo = map {$_=2; foo()} 1..10; sub foo{print}' 2222222222 $ perl -e '@foo = map {my $_=2; foo()} 1..10; sub foo{print}' 12345678910

print "just another perl5.8 hacker"

Replies are listed 'Best First'.
Re^4: my $1
by JavaFan (Canon) on Apr 23, 2009 at 22:08 UTC
    Baah, this gives me creeps.
    Does this give you also the creeps?
    $ perl -e 'for $x (1 .. 9) {$x = 2; foo ()} sub foo {print $x}' 222222222 $ perl -e 'for $x (1 .. 9) {my $x = 2; foo ()} sub foo {print $x}' 123456789
    Or is it the fact that Perl just got a little bit more regular that creeps you out?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://759661]
help
Chatterbox?
[atcroft]: Discipulus: I looked back at your note about my Padre question from a while back, and it made me look again... as a result, I found what I was missing and was able to make the change. Thank you!
[LanX]: maybe better /msg discipulus ?
[atcroft]: I thought I saw them on, and just wanted to let them know.
[LanX]: hmm ... or even better /msg /msg [discipulus]

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2018-02-24 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (311 votes). Check out past polls.

    Notices?