Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: strange behaviour when forking lots of times

by kvale (Monsignor)
on May 16, 2006 at 04:25 UTC ( #549661=note: print w/replies, xml ) Need Help??

in reply to strange behaviour when forking lots of times

When I run the code on my linux system:
1001% perl -e 'fork || print for split (//, "a" x 10);'
I get nothing but a string of a's. Suse 9.1, perl 5.8.6.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://549661]
[Lotus1]: belg4mit are you on a Linix server?
[belg4mit]: yes. the regular expression is generated in code from a text file. that s the regular expression that Perl blows up when it reaches it, but if I use it from the comman line it's fine
[belg4mit]: oh, wait, damn, different lne number
[choroba]: same Perl version?
[choroba]: oh, ok
[belg4mit]: I had \Q'd in one RE but not a subsequent one, doh
[talexb]: Programs writing programs. Neat stuff.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2017-04-25 16:44 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (460 votes). Check out past polls.