Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Idiomatic Perl?

by 1nickt (Canon)
on Mar 20, 2018 at 14:30 UTC ( [id://1211334]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Idiomatic Perl?
in thread Idiomatic Perl?

Try it! What does it return?

If it's not what you want, another approach might be to call the chomp on the result of the assignment:

chomp( my $str = <STDIN> );

Hope this helps!


The way forward always starts with a minimal test.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-20 00:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found