Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Bareword "Z" not allowed while "strict subs" in use

by kcott (Archbishop)
on Nov 21, 2013 at 00:53 UTC ( [id://1063652]=note: print w/replies, xml ) Need Help??


in reply to Bareword "Z" not allowed while "strict subs" in use

Use quotes:

#!/usr/bin/env perl -l use strict; use warnings; my @chars = ('a'..'z', 'A'..'Z', 0..9); my $URL = join '', map { @chars[rand @chars] } 1 .. 10; print $URL;

Output:

ZfgLnUCDNQ

-- Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1063652]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2024-04-25 11:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found