Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: String parse

by OM_Zen (Scribe)
on Feb 01, 2003 at 04:53 UTC ( #231806=note: print w/ replies, xml ) Need Help??


in reply to String parse

Hi ,

use strict; while(<INPUT>){ local $/; my $line = $_; ########@push @lineinfo, split $line; ###### The @push .... is not a compiling code my @lineinfo = split(' ',$line); ########## @lineinfo = () ; I have less cluesss on what you are do +ing ######### You have to use strict; ######### learn about split,push commands and perldoc perlop ######### perldoc split ######### perldoc push ######### perldoc perlop ######### abotu strict module too


Comment on Re: String parse
Download Code
Re: Re: String parse
by ibanix (Hermit) on Feb 02, 2003 at 09:29 UTC
    You have to use strict

    Well no, you don't have to use strict. But it's recommended, to make your life easier. :-)

    ibanix

    $ echo '$0 & $0 &' > foo; chmod a+x foo; foo;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (18)
As of 2015-07-01 19:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (17 votes), past polls